mailr6183 - /1.3/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on May 20, 2008 - 23:56:
Author: bugman
Date: Tue May 20 23:45:51 2008
New Revision: 6183

URL: http://svn.gna.org/viewcvs/relax?rev=6183&view=rev
Log:
Fix for the atom_loop() method.  The position is now returned as a numpy 
array.


Modified:
    1.3/generic_fns/structure/internal.py

Modified: 1.3/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=6183&r1=6182&r2=6183&view=diff
==============================================================================
--- 1.3/generic_fns/structure/internal.py (original)
+++ 1.3/generic_fns/structure/internal.py Tue May 20 23:45:51 2008
@@ -24,6 +24,7 @@
 """Module containing the internal relax structural object."""
 
 # Python module imports.
+from numpy import array, float64
 from re import search
 from string import split, strip
 
@@ -424,7 +425,7 @@
                 if element_flag:
                     atomic_tuple = atomic_tuple + (struct.element[i],)
                 if pos_flag:
-                    atomic_tuple = atomic_tuple + ([struct.x[i], 
struct.y[i], struct.z[i]],)
+                    atomic_tuple = atomic_tuple + (array([struct.x[i], 
struct.y[i], struct.z[i]], float64),)
 
                 # Yield the information.
                 yield atomic_tuple




Related Messages


Powered by MHonArc, Updated Wed May 21 00:00:22 2008