mailr25202 - /trunk/pipe_control/structure/main.py


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

Header


Content

Posted by edward on August 22, 2014 - 11:28:
Author: bugman
Date: Fri Aug 22 11:28:35 2014
New Revision: 25202

URL: http://svn.gna.org/viewcvs/relax?rev=25202&view=rev
Log:
Another fix for bug #22505 (https://gna.org/bugs/?22505).

This is the failure of the structure.create_diff_tensor_pdb user function 
when no structural data is
present.  Now the cdp.structure data structure is checked, when present, if 
it contains any data
using its own empty() method.


Modified:
    trunk/pipe_control/structure/main.py

Modified: trunk/pipe_control/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/structure/main.py?rev=25202&r1=25201&r2=25202&view=diff
==============================================================================
--- trunk/pipe_control/structure/main.py        (original)
+++ trunk/pipe_control/structure/main.py        Fri Aug 22 11:28:35 2014
@@ -152,7 +152,7 @@
     pipes.test()
 
     # Calculate the centre of mass.
-    if hasattr(cdp, 'structure'):
+    if hasattr(cdp, 'structure') and not cdp.structure.empty():
         com = pipe_centre_of_mass()
     else:
         com = zeros(3, float64)




Related Messages


Powered by MHonArc, Updated Fri Aug 22 11:40:02 2014