mailr27562 - /trunk/specific_analyses/n_state_model/data.py


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

Header


Content

Posted by edward on February 05, 2015 - 18:51:
Author: bugman
Date: Thu Feb  5 18:51:10 2015
New Revision: 27562

URL: http://svn.gna.org/viewcvs/relax?rev=27562&view=rev
Log:
Updated the N-state model num_data_points() function to use more modern 
integer incrementation.


Modified:
    trunk/specific_analyses/n_state_model/data.py

Modified: trunk/specific_analyses/n_state_model/data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/n_state_model/data.py?rev=27562&r1=27561&r2=27562&view=diff
==============================================================================
--- trunk/specific_analyses/n_state_model/data.py       (original)
+++ trunk/specific_analyses/n_state_model/data.py       Thu Feb  5 18:51:10 
2015
@@ -148,7 +148,7 @@
             if hasattr(spin, 'pcs'):
                 for id in spin.pcs:
                     if is_float(spin.pcs[id]):
-                        n = n + 1
+                        n += 1
 
     # Interatomic data loop.
     for interatom in interatomic_loop():
@@ -157,11 +157,11 @@
             if hasattr(interatom, 'rdc'):
                 for id in interatom.rdc:
                     if is_float(interatom.rdc[id]):
-                        n = n + 1
+                        n += 1
 
     # Alignment tensors.
     if 'tensor' in data_types:
-        n = n + 5*len(cdp.align_tensors)
+        n += 5*len(cdp.align_tensors)
 
     # Return the value.
     return n




Related Messages


Powered by MHonArc, Updated Thu Feb 05 19:00:02 2015