mailr17733 - in /trunk/data: align_tensor.py diff_tensor.py


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

Header


Content

Posted by edward on October 08, 2012 - 00:34:
Author: bugman
Date: Mon Oct  8 00:34:46 2012
New Revision: 17733

URL: http://svn.gna.org/viewcvs/relax?rev=17733&view=rev
Log:
Python 3 fix for the setting of diffusion and alignment tensor simulation 
values.

The previous code somehow worked in Python 2 but was not formally correct and 
broke in Python 3.


Modified:
    trunk/data/align_tensor.py
    trunk/data/diff_tensor.py

Modified: trunk/data/align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/data/align_tensor.py?rev=17733&r1=17732&r2=17733&view=diff
==============================================================================
--- trunk/data/align_tensor.py (original)
+++ trunk/data/align_tensor.py Mon Oct  8 00:34:46 2012
@@ -1348,5 +1348,4 @@
         """Set the value for an untouchable MC data structure."""
 
         # Set the value.
-        print(slice_obj)
-        list.__setitem__(self, slice_obj, value)
+        list.__setitem__(self, slice_obj, [value])

Modified: trunk/data/diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/data/diff_tensor.py?rev=17733&r1=17732&r2=17733&view=diff
==============================================================================
--- trunk/data/diff_tensor.py (original)
+++ trunk/data/diff_tensor.py Mon Oct  8 00:34:46 2012
@@ -1077,5 +1077,4 @@
         """Set the value for an untouchable MC data structure."""
 
         # Set the value.
-        print(slice_obj)
-        list.__setitem__(self, slice_obj, value)
+        list.__setitem__(self, slice_obj, [value])




Related Messages


Powered by MHonArc, Updated Mon Oct 08 01:00:02 2012