mailr18237 - /branches/frame_order_testing/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 January 18, 2013 - 21:53:
Author: bugman
Date: Fri Jan 18 21:53:13 2013
New Revision: 18237

URL: http://svn.gna.org/viewcvs/relax?rev=18237&view=rev
Log:
Bug fixes for the N-state model for the changes of the frame order testing 
branch.


Modified:
    branches/frame_order_testing/specific_fns/n_state_model.py

Modified: branches/frame_order_testing/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/specific_fns/n_state_model.py?rev=18237&r1=18236&r2=18237&view=diff
==============================================================================
--- branches/frame_order_testing/specific_fns/n_state_model.py (original)
+++ branches/frame_order_testing/specific_fns/n_state_model.py Fri Jan 18 
21:53:13 2013
@@ -104,7 +104,7 @@
             # Loop over the alignments, adding the alignment tensor 
parameters to the parameter vector.
             for i in range(len(cdp.align_tensors)):
                 # No alignment ID, so skip the tensor as it will not be 
optimised.
-                if cdp.align_tensors[i].align_id not in cdp.align_ids:
+                if cdp.align_tensors[i].name not in cdp.align_ids:
                     continue
 
                 # Fixed tensor.
@@ -557,7 +557,7 @@
             tensor_num = 0
             for i in range(len(cdp.align_tensors)):
                 # No alignment ID, so skip the tensor as it will not be 
optimised.
-                if cdp.align_tensors[i].align_id not in cdp.align_ids:
+                if cdp.align_tensors[i].name not in cdp.align_ids:
                     continue
 
                 # Fixed tensor.
@@ -1368,7 +1368,7 @@
             # Loop over the alignments.
             for i in range(len(cdp.align_tensors)):
                 # No alignment ID, so skip the tensor as it is not part of 
the parameter set.
-                if cdp.align_tensors[i].align_id not in cdp.align_ids:
+                if cdp.align_tensors[i].name not in cdp.align_ids:
                     continue
 
                 # Fixed tensor.
@@ -1626,7 +1626,7 @@
                 # Find if the tensor corresponding to the id exists.
                 exists = False
                 for tensor in cdp.align_tensors:
-                    if id == tensor.align_id:
+                    if id == tensor.name:
                         exists = True
 
                 # Initialise the tensor.




Related Messages


Powered by MHonArc, Updated Fri Jan 18 22:20:02 2013