mailr4949 - /branches/N_state_model/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 February 11, 2008 - 16:32:
Author: bugman
Date: Mon Feb 11 16:32:02 2008
New Revision: 4949

URL: http://svn.gna.org/viewcvs/relax?rev=4949&view=rev
Log:
Bug fixes for the N-state model minimise() function.

The variable is 'cdp.ref_domain', not 'cdp.ref'!


Modified:
    branches/N_state_model/specific_fns/n_state_model.py

Modified: branches/N_state_model/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4949&r1=4948&r2=4949&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Mon Feb 11 16:32:02 
2008
@@ -365,7 +365,7 @@
         cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Test if the N-state model has been set up.
-        if not hasattr(cdp, 'N') or not hasattr(cdp, 'ref'):
+        if not hasattr(cdp, 'N') or not hasattr(cdp, 'ref_domain'):
             raise RelaxNoModelError, 'N-state'
 
         # Create the initial parameter vector.
@@ -384,7 +384,7 @@
         # Loop over all tensors.
         for tensor in cdp.align_tensors:
             # The full tensor corresponds to the frame of reference.
-            if cdp.ref == tensor.domain:
+            if cdp.ref_domain == tensor.domain:
                 full_in_ref_frame.append(1)
             else:
                 full_in_ref_frame.append(0)




Related Messages


Powered by MHonArc, Updated Mon Feb 11 16:40:10 2008