mailr3421 - /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 04, 2007 - 18:18:
Author: bugman
Date: Sun Nov  4 18:01:59 2007
New Revision: 3421

URL: http://svn.gna.org/viewcvs/relax?rev=3421&view=rev
Log:
Modified the 'generic_fns.residue.copy()' function to work with the modified 
'return_molecule()' fn.

Five unit test were failing due to the previous commit.  This was because of 
a problem in
'generic_fns.residue.copy()' that wasn't previously detected.


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=3421&r1=3420&r2=3421&view=diff
==============================================================================
--- 1.3/generic_fns/residue.py (original)
+++ 1.3/generic_fns/residue.py Sun Nov  4 18:01:59 2007
@@ -84,8 +84,10 @@
     if res_from_cont == None:
         raise RelaxError, "The residue " + `res_from` + " does not exist in 
the " + `pipe_from` + " data pipe."
 
-    # Get the single molecule data container to copy the residue to.
+    # Get the single molecule data container to copy the residue to (default 
to the first molecule).
     mol_to_container = return_molecule(res_to, pipe_to)
+    if mol_to_container == None:
+        mol_to_container = relax_data_store[pipe_to].mol[0]
 
     # Copy the data.
     if mol_to_container.res[0].num == None and mol_to_container.res[0].name 
== None and len(mol_to_container.res) == 1:




Related Messages


Powered by MHonArc, Updated Sun Nov 04 18:40:14 2007