mailr8479 - /branches/multi_structure/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 January 15, 2009 - 17:14:
Author: bugman
Date: Thu Jan 15 17:14:52 2009
New Revision: 8479

URL: http://svn.gna.org/viewcvs/relax?rev=8479&view=rev
Log:
Modified the load_spins() function to use the new num_models() and 
num_molecules() methods.


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

Modified: branches/multi_structure/generic_fns/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/main.py?rev=8479&r1=8478&r2=8479&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/main.py (original)
+++ branches/multi_structure/generic_fns/structure/main.py Thu Jan 15 
17:14:52 2009
@@ -65,7 +65,7 @@
     cdp = pipes.get_pipe()
 
     # Test if the structure exists.
-    if not hasattr(cdp, 'structure') or not cdp.structure.num > 0:
+    if not hasattr(cdp, 'structure') or not cdp.structure.num_models() or 
not cdp.structure.num_molecules():
         raise RelaxNoPdbError
 
     # Print out.




Related Messages


Powered by MHonArc, Updated Thu Jan 15 17:20:03 2009