mailr3629 - /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 - 10:54:
Author: bugman
Date: Tue Nov 20 10:54:56 2007
New Revision: 3629

URL: http://svn.gna.org/viewcvs/relax?rev=3629&view=rev
Log:
Fixed a bug in the molecule.copy() user function caused by the pipe_from 
argument.


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=3629&r1=3628&r2=3629&view=diff
==============================================================================
--- 1.3/prompt/molecule.py (original)
+++ 1.3/prompt/molecule.py Tue Nov 20 10:54:56 2007
@@ -27,7 +27,7 @@
 import help
 from generic_fns import molecule
 from generic_fns.selection import id_string_doc
-from relax_errors import RelaxIntError, RelaxStrError
+from relax_errors import RelaxIntError, RelaxNoneStrError, RelaxStrError
 
 
 class Molecule:
@@ -92,8 +92,8 @@
             print text
 
         # The pipe_from argument.
-        if type(pipe_from) != str:
-            raise RelaxStrError, ('data pipe from', pipe_from)
+        if pipe_from != None and type(pipe_from) != str:
+            raise RelaxNoneStrError, ('data pipe from', pipe_from)
 
         # The molecule from argument.
         if type(mol_from) != str:




Related Messages


Powered by MHonArc, Updated Tue Nov 20 11:00:19 2007