mailr7569 - in /1.3/specific_fns: consistency_tests.py jw_mapping.py relax_fit.py


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

Header


Content

Posted by edward on October 07, 2008 - 23:12:
Author: bugman
Date: Tue Oct  7 23:12:08 2008
New Revision: 7569

URL: http://svn.gna.org/viewcvs/relax?rev=7569&view=rev
Log:
Fixes for the spin container select flag.

Now the flag is always set to the bools True or False rather than 1 and 0.


Modified:
    1.3/specific_fns/consistency_tests.py
    1.3/specific_fns/jw_mapping.py
    1.3/specific_fns/relax_fit.py

Modified: 1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/consistency_tests.py?rev=7569&r1=7568&r2=7569&view=diff
==============================================================================
--- 1.3/specific_fns/consistency_tests.py (original)
+++ 1.3/specific_fns/consistency_tests.py Tue Oct  7 23:12:08 2008
@@ -309,12 +309,12 @@
 
             # Check for sufficient data
             if not hasattr(spin, 'relax_data'):
-                spin.select = 0
+                spin.select = False
                 continue
 
             # Require 3 or more data points
             if len(spin.relax_data) < 3:
-                spin.select = 0
+                spin.select = False
                 continue
 
 

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=7569&r1=7568&r2=7569&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Tue Oct  7 23:12:08 2008
@@ -283,12 +283,12 @@
         for spin in spin_loop():
             # Check if data exists.
             if not hasattr(spin, 'relax_data'):
-                spin.select = 0
+                spin.select = False
                 continue
 
             # Require 3 or more data points.
             if len(spin.relax_data) < 3:
-                spin.select = 0
+                spin.select = False
                 continue
 
 

Modified: 1.3/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/relax_fit.py?rev=7569&r1=7568&r2=7569&view=diff
==============================================================================
--- 1.3/specific_fns/relax_fit.py (original)
+++ 1.3/specific_fns/relax_fit.py Tue Oct  7 23:12:08 2008
@@ -665,7 +665,7 @@
 
                 # Skip and deselect spins which have no data.
                 if not hasattr(spin, 'intensities'):
-                    spin.select = 0
+                    spin.select = False
                     continue
 
                 # Initialise the average intensity and standard deviation 
data structures.




Related Messages


Powered by MHonArc, Updated Tue Oct 07 23:20:03 2008