mailr24340 - /branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py


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

Header


Content

Posted by tlinnet on June 27, 2014 - 13:35:
Author: tlinnet
Date: Fri Jun 27 13:35:32 2014
New Revision: 24340

URL: http://svn.gna.org/viewcvs/relax?rev=24340&view=rev
Log:
Fix for unit test passing on old numpy systems.

The error was:
ValueError: setting an array element with a sequence.

Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion 
models for Clustered analysis.

Modified:
    
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py

Modified: 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py?rev=24340&r1=24339&r2=24340&view=diff
==============================================================================
--- 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py
      (original)
+++ 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72_full_cluster_three_fields.py
      Fri Jun 27 13:35:32 2014
@@ -114,7 +114,7 @@
 
         # Setup special numpy array structures, for higher dimensional 
computation.
         # Get the shape of back_calc structure.
-        back_calc_shape = list( asarray(self.back_calc).shape )[:4]
+        back_calc_shape = [1, self.num_spins, len(self.fields), 1]
 
         # Find which frequency has the maximum number of disp points.
         # To let the numpy array operate well together, the broadcast size 
has to be equal for all shapes.
@@ -474,4 +474,4 @@
         self.kex = 1e7
 
         # Calculate and check the R2eff values.
-        self.calc_r2eff()
+        self.calc_r2eff()




Related Messages


Powered by MHonArc, Updated Fri Jun 27 14:40:02 2014