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
_______________________________________________
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