mailr4097 - /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:36:
Author: bugman
Date: Wed Nov 28 10:36:05 2007
New Revision: 4097

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

The contents of res_to_cont is now checked for, to see if it is empty.


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=4097&r1=4096&r2=4097&view=diff
==============================================================================
--- 1.3/generic_fns/residue.py (original)
+++ 1.3/generic_fns/residue.py Wed Nov 28 10:36:05 2007
@@ -23,7 +23,7 @@
 # relax module imports.
 from data import Data as relax_data_store
 from relax_errors import RelaxError, RelaxNoPipeError, 
RelaxSpinSelectDisallowError
-from selection import molecule_loop, parse_token, residue_loop, 
return_molecule, return_residue, return_single_residue_info, tokenise
+from selection import exists_res_data, molecule_loop, parse_token, 
residue_loop, return_molecule, return_residue, return_single_residue_info, 
tokenise
 
 
 # Module doc.
@@ -74,7 +74,7 @@
 
     # Test if the residue number already exists.
     res_to_cont = return_residue(res_to, pipe_to)
-    if res_to_cont:
+    if res_to_cont and exists_res_data(res_to_cont):
         raise RelaxError, "The residue " + `res_to` + " already exists in 
the " + `pipe_from` + " data pipe."
 
     # Get the single residue data container.




Related Messages


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