mailr6674 - /branches/rdc_analysis/generic_fns/structure/main.py


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

Header


Content

Posted by edward on July 04, 2008 - 16:40:
Author: bugman
Date: Fri Jul  4 16:40:14 2008
New Revision: 6674

URL: http://svn.gna.org/viewcvs/relax?rev=6674&view=rev
Log:
Bug fix for the load_spins() function.

Molecule, residue, and spin information can be missing and the function still 
work.


Modified:
    branches/rdc_analysis/generic_fns/structure/main.py

Modified: branches/rdc_analysis/generic_fns/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/main.py?rev=6674&r1=6673&r2=6674&view=diff
==============================================================================
--- branches/rdc_analysis/generic_fns/structure/main.py (original)
+++ branches/rdc_analysis/generic_fns/structure/main.py Fri Jul  4 16:40:14 
2008
@@ -79,7 +79,7 @@
             mol_cont = cdp.mol[0]
 
         # Add the molecule if it doesn't exist.
-        if mol_name and mol_cont == None:
+        if mol_cont == None:
             # Add the molecule.
             cdp.mol.add_item(mol_name=mol_name)
 
@@ -93,7 +93,7 @@
         res_cont = return_residue(id)
 
         # Add the residue if it doesn't exist.
-        if res_num and res_name and res_cont == None:
+        if res_cont == None:
             # Add the residue.
             mol_cont.res.add_item(res_name=res_name, res_num=res_num)
 
@@ -107,7 +107,7 @@
         spin_cont = return_spin(id)
 
         # Add the spin if it doesn't exist.
-        if atom_name and spin_cont == None:
+        if spin_cont == None:
             # Add the spin.
             res_cont.spin.add_item(spin_name=atom_name, spin_num=atom_num)
 




Related Messages


Powered by MHonArc, Updated Fri Jul 04 17:00:15 2008