mailr16454 - /1.3/generic_fns/structure/main.py


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

Header


Content

Posted by edward on May 25, 2012 - 11:30:
Author: bugman
Date: Fri May 25 11:30:38 2012
New Revision: 16454

URL: http://svn.gna.org/viewcvs/relax?rev=16454&view=rev
Log:
Fix for a bug introduced at r16453.

The structure.vectors user function will now store single vectors as a 3D, 
rank-1 array.  In some
cases this was being stored as a list of 3D, rank-1 arrays which was then 
failing in with the 
RelaxMultipleVectorError in the model-free code.


Modified:
    1.3/generic_fns/structure/main.py

Modified: 1.3/generic_fns/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/main.py?rev=16454&r1=16453&r2=16454&view=diff
==============================================================================
--- 1.3/generic_fns/structure/main.py (original)
+++ 1.3/generic_fns/structure/main.py Fri May 25 11:30:38 2012
@@ -819,6 +819,10 @@
         else:
             vector = bond_vectors
 
+        # Convert to a single vector if needed.
+        if len(vector) == 1:
+            vector = vector[0]
+
         # Set the vector.
         setattr(spin, object_name, vector)
 




Related Messages


Powered by MHonArc, Updated Fri May 25 12:00:02 2012