Author: bugman
Date: Thu Jan 22 14:47:36 2009
New Revision: 8586

URL: http://svn.gna.org/viewcvs/relax?rev=8586&view=rev
Log:
Fix for create_vector_dist().

The presence of structures now is tested using cdp.structure.num_models().


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

Modified: branches/multi_structure/generic_fns/structure/geometric.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/geometric.py?rev=8586&r1=8585&r2=8586&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/geometric.py (original)
+++ branches/multi_structure/generic_fns/structure/geometric.py Thu Jan 22 
14:47:36 2009
@@ -327,7 +327,7 @@
     cdp = pipes.get_pipe()
 
     # Test if a structure has been loaded.
-    if not hasattr(cdp, 'structure') or not cdp.structure.num > 0:
+    if not hasattr(cdp, 'structure') or not cdp.structure.num_models() > 0:
         raise RelaxNoPdbError
 
     # Test if sequence data is loaded.


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to