mailr17670 - /trunk/maths_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 02, 2012 - 15:44:
Author: bugman
Date: Tue Oct  2 15:44:24 2012
New Revision: 17670

URL: http://svn.gna.org/viewcvs/relax?rev=17670&view=rev
Log:
Python 3 bug fix for the N-state model target function setup.

The num_tensors variable needs to be an integer, but the Python 3 division 
will create a float type.


Modified:
    trunk/maths_fns/n_state_model.py

Modified: trunk/maths_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/maths_fns/n_state_model.py?rev=17670&r1=17669&r2=17670&view=diff
==============================================================================
--- trunk/maths_fns/n_state_model.py (original)
+++ trunk/maths_fns/n_state_model.py Tue Oct  2 15:44:24 2012
@@ -191,7 +191,7 @@
 
             # Tensor set up.
             self.full_tensors = array(full_tensors, float64)
-            self.num_tensors = len(self.full_tensors) / 5
+            self.num_tensors = int(len(self.full_tensors) / 5)
             self.red_data = red_data
             self.red_errors = red_errors
             self.full_in_ref_frame = full_in_ref_frame




Related Messages


Powered by MHonArc, Updated Tue Oct 02 16:00:02 2012