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.