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)