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)
_______________________________________________
relax (http://www.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