mailr5967 - /1.3/generic_fns/molecule.py


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

Header


Content

Posted by edward on April 24, 2008 - 01:06:
Author: bugman
Date: Thu Apr 24 00:31:16 2008
New Revision: 5967

URL: http://svn.gna.org/viewcvs/relax?rev=5967&view=rev
Log:
Fixed a bug in the copy() fn uncovered by the fix of r5966.


Modified:
    1.3/generic_fns/molecule.py

Modified: 1.3/generic_fns/molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/molecule.py?rev=5967&r1=5966&r2=5967&view=diff
==============================================================================
--- 1.3/generic_fns/molecule.py (original)
+++ 1.3/generic_fns/molecule.py Thu Apr 24 00:31:16 2008
@@ -77,7 +77,7 @@
 
     # Test if the molecule name already exists.
     mol_to_cont = return_molecule(mol_to, pipe_to)
-    if mol_to_cont:
+    if mol_to_cont and not mol_to_cont.is_empty():
         raise RelaxError, "The molecule " + `mol_to` + " already exists in 
the " + `pipe_to` + " data pipe."
 
     # Get the single molecule data container.




Related Messages


Powered by MHonArc, Updated Thu Apr 24 01:20:25 2008