This is a read-only mirror of pymolwiki.org

Difference between revisions of "Talk:Findseq"

From PyMOL Wiki
Jump to navigation Jump to search
(Created page with 'I noticed that while the selName argument is optional with a default value of 'foundSeqXYZ', not specifing it gives rise to this error: Error: selName was not a string. This is…')
 
m (2 revisions)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 00:44, 28 March 2014

I noticed that while the selName argument is optional with a default value of 'foundSeqXYZ', not specifing it gives rise to this error:

Error: selName was not a string.

This is because when the function seqFinder is called, is it set to None and then, the checkParams function makes sure that it is a string. Changing line 48 to:

if type(selName)!=(types.StringType) and type(selName)!=(types.NoneType):

solves the problem.

Aj