mailr18323 - /trunk/extern/scientific_python/Geometry/TensorModule.py


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

Header


Content

Posted by edward on January 28, 2013 - 10:52:
Author: bugman
Date: Mon Jan 28 10:52:07 2013
New Revision: 18323

URL: http://svn.gna.org/viewcvs/relax?rev=18323&view=rev
Log:
Python 3 fix for the part of ScientificPython distributed with relax (for the 
PDB parser).


Modified:
    trunk/extern/scientific_python/Geometry/TensorModule.py

Modified: trunk/extern/scientific_python/Geometry/TensorModule.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/extern/scientific_python/Geometry/TensorModule.py?rev=18323&r1=18322&r2=18323&view=diff
==============================================================================
--- trunk/extern/scientific_python/Geometry/TensorModule.py (original)
+++ trunk/extern/scientific_python/Geometry/TensorModule.py Mon Jan 28 
10:52:07 2013
@@ -126,7 +126,7 @@
         """
         if isTensor(other):
             a = self.array
-            b =  N.transpose(other.array, range(1, other.rank)+[0])
+            b =  N.transpose(other.array, list(range(1, other.rank))+[0])
             return Tensor(N.innerproduct(a, b), 1)
         else:
             return Tensor(self.array*other, 1)




Related Messages


Powered by MHonArc, Updated Mon Jan 28 11:00:02 2013