mailr14836 - /1.3/specific_fns/n_state_model.py


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

Header


Content

Posted by edward on October 12, 2011 - 14:57:
Author: bugman
Date: Wed Oct 12 14:57:13 2011
New Revision: 14836

URL: http://svn.gna.org/viewcvs/relax?rev=14836&view=rev
Log:
Another fix for a recent bug in _minimise_bc_data().


Modified:
    1.3/specific_fns/n_state_model.py

Modified: 1.3/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=14836&r1=14835&r2=14836&view=diff
==============================================================================
--- 1.3/specific_fns/n_state_model.py (original)
+++ 1.3/specific_fns/n_state_model.py Wed Oct 12 14:57:13 2011
@@ -760,7 +760,7 @@
 
         # Loop over each alignment.
         align_index = 0
-        for i in xrange(len(cdp.align_tensors)):
+        for i in xrange(len(cdp.align_ids)):
             # Fixed tensor.
             if cdp.align_tensors[i].fixed:
                 continue
@@ -804,6 +804,9 @@
                 # Increment the spin index if it contains data.
                 if hasattr(spin, 'pcs') or (hasattr(spin, 'rdc') and 
(hasattr(spin, 'xh_vect') or hasattr(spin, 'bond_vect'))):
                     data_index = data_index + 1
+
+            # Increment the alignment index.
+            align_index += 1
 
 
     def _minimise_setup_atomic_pos(self):




Related Messages


Powered by MHonArc, Updated Wed Oct 12 15:20:01 2011