mailr3646 - /1.3/prompt/molecule.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 20, 2007 - 11:38:
Author: bugman
Date: Tue Nov 20 11:38:13 2007
New Revision: 3646

URL: http://svn.gna.org/viewcvs/relax?rev=3646&view=rev
Log:
Bug fix in the molecule.display() user function.

The test for None or a str should use 'and', not 'or'!


Modified:
    1.3/prompt/molecule.py

Modified: 1.3/prompt/molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/molecule.py?rev=3646&r1=3645&r2=3646&view=diff
==============================================================================
--- 1.3/prompt/molecule.py (original)
+++ 1.3/prompt/molecule.py Tue Nov 20 11:38:13 2007
@@ -196,7 +196,7 @@
             print text
 
         # The molecule identifier argument.
-        if mol_id != None or type(mol_id) != str:
+        if mol_id != None and type(mol_id) != str:
             raise RelaxNoneStrError, ('molecule identifier', mol_id)
 
         # Execute the functional code.




Related Messages


Powered by MHonArc, Updated Tue Nov 20 12:00:10 2007