mailr4100 - /1.3/generic_fns/residue.py


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

Header


Content

Posted by edward on November 28, 2007 - 10:48:
Author: bugman
Date: Wed Nov 28 10:48:45 2007
New Revision: 4100

URL: http://svn.gna.org/viewcvs/relax?rev=4100&view=rev
Log:
Bug fix for the generic_fns.residue.create() function.

This is the same fix as that for generic_fns.spin.create() in r4099.


Modified:
    1.3/generic_fns/residue.py

Modified: 1.3/generic_fns/residue.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/residue.py?rev=4100&r1=4099&r2=4100&view=diff
==============================================================================
--- 1.3/generic_fns/residue.py (original)
+++ 1.3/generic_fns/residue.py Wed Nov 28 10:48:45 2007
@@ -127,10 +127,11 @@
         raise RelaxNoPipeError
 
     # Get the molecule container to add the residue to.
-    mol_to_cont = return_molecule(mol_id)
-    if mol_to_cont == None and mol_id:
-        raise RelaxError, "The molecule in " + `mol_id` + " does not exist 
in the current data pipe."
-    elif mol_to_cont == None:
+    if mol_id:
+        mol_to_cont = return_molecule(mol_id)
+        if mol_to_cont == None:
+            raise RelaxError, "The molecule in " + `mol_id` + " does not 
exist in the current data pipe."
+    else:
         mol_to_cont = relax_data_store[relax_data_store.current_pipe].mol[0]
 
     # Test if the residue number already exists.




Related Messages


Powered by MHonArc, Updated Wed Nov 28 11:00:14 2007