mailr12674 - /branches/relax_data/generic_fns/relax_data.py


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

Header


Content

Posted by edward on March 01, 2011 - 18:51:
Author: bugman
Date: Tue Mar  1 18:51:54 2011
New Revision: 12674

URL: http://svn.gna.org/viewcvs/relax?rev=12674&view=rev
Log:
Fixes for the pack_data() function.


Modified:
    branches/relax_data/generic_fns/relax_data.py

Modified: branches/relax_data/generic_fns/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data/generic_fns/relax_data.py?rev=12674&r1=12673&r2=12674&view=diff
==============================================================================
--- branches/relax_data/generic_fns/relax_data.py (original)
+++ branches/relax_data/generic_fns/relax_data.py Tue Mar  1 18:51:54 2011
@@ -608,9 +608,9 @@
             raise RelaxNoSpinError(spin_ids[i])
 
         # Initialise the spin data if necessary.
-        if not hasattr(spin, 'ri_data'):
+        if not hasattr(spin, 'ri_data') or spin.ri_data == None:
             spin.ri_data = {}
-        if not hasattr(spin, 'ri_data_err'):
+        if not hasattr(spin, 'ri_data_err') or spin.ri_data_err == None:
             spin.ri_data_err = {}
 
         # Update all data structures.




Related Messages


Powered by MHonArc, Updated Tue Mar 01 19:20:02 2011