mailr18360 - /trunk/data/pipe_container.py


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

Header


Content

Posted by edward on February 01, 2013 - 17:04:
Author: bugman
Date: Fri Feb  1 17:04:27 2013
New Revision: 18360

URL: http://svn.gna.org/viewcvs/relax?rev=18360&view=rev
Log:
Fix for bug #20471 (https://gna.org/bugs/?20471).

The problem was that the data pipe is_empty() method was not handling 
structural data correctly.
The is_empty() method now belongs to the MolContainer objects rather than 
cdp.structure, and the
object cdp.structure is not always present.


Modified:
    trunk/data/pipe_container.py

Modified: trunk/data/pipe_container.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/data/pipe_container.py?rev=18360&r1=18359&r2=18360&view=diff
==============================================================================
--- trunk/data/pipe_container.py (original)
+++ trunk/data/pipe_container.py Fri Feb  1 17:04:27 2013
@@ -260,7 +260,7 @@
         """
 
         # Is the molecule structure data object empty?
-        if hasattr(self, 'structure') and not self.structure.is_empty():
+        if hasattr(self, 'structure'):
             return False
 
         # Is the molecule/residue/spin data object empty?




Related Messages


Powered by MHonArc, Updated Fri Feb 01 17:20:02 2013