mailr27567 - /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 - 19:12:
Author: bugman
Date: Thu Feb  5 19:12:57 2015
New Revision: 27567

URL: http://svn.gna.org/viewcvs/relax?rev=27567&view=rev
Log:
Fixes for the N-state model num_data_points() function.

The deselected interatomic data containers are no longer used for counting 
RDC data.  And the
skipping of deselected spin containers for the PCS is now via the spin_loop() 
skip_desel argument.


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=27567&r1=27566&r2=27567&view=diff
==============================================================================
--- trunk/specific_analyses/n_state_model/data.py       (original)
+++ trunk/specific_analyses/n_state_model/data.py       Thu Feb  5 19:12:57 
2015
@@ -138,11 +138,7 @@
     n = 0
 
     # Spin loop.
-    for spin in spin_loop():
-        # Skip deselected spins.
-        if not spin.select:
-            continue
-
+    for spin in spin_loop(skip_desel=True):
         # PCS data (skipping array elements set to None).
         if 'pcs' in data_types:
             if hasattr(spin, 'pcs'):
@@ -151,7 +147,7 @@
                         n += 1
 
     # Interatomic data loop.
-    for interatom in interatomic_loop():
+    for interatom in interatomic_loop(skip_desel=True):
         # RDC data (skipping array elements set to None).
         if 'rdc' in data_types:
             if hasattr(interatom, 'rdc'):




Related Messages


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