mailr10191 - /branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py


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

Header


Content

Posted by edward on January 13, 2010 - 11:22:
Author: bugman
Date: Wed Jan 13 11:22:05 2010
New Revision: 10191

URL: http://svn.gna.org/viewcvs/relax?rev=10191&view=rev
Log:
Bug fix for the model-free optimisation.

The data containers used to store all the model-free info and optimisation 
parameters was being
overwritten so each command sent to the processor queue contained only the 
data of the last spin
system.


Modified:
    branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py

Modified: 
branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py?rev=10191&r1=10190&r2=10191&view=diff
==============================================================================
--- branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py 
(original)
+++ branches/multi_processor_merge/specific_fns/model_free/mf_minimise.py Wed 
Jan 13 11:22:05 2010
@@ -21,6 +21,7 @@
 
###############################################################################
 
 # Python module imports.
+from copy import deepcopy
 from math import pi
 from numpy import float64, array, dot, zeros
 from numpy.linalg import inv
@@ -1627,7 +1628,7 @@
                 command = MF_minimise_command()
 
             # Pass in the data and optimisation parameters.
-            command.store_data(data_store, opt_params)
+            command.store_data(deepcopy(data_store), deepcopy(opt_params))
 
             # Set up the model-free memo and add it to the processor queue.
             memo = MF_memo(model_free=self, 
model_type=data_store.model_type, spin=spin, sim_index=sim_index, 
scaling=scaling, scaling_matrix=data_store.scaling_matrix)




Related Messages


Powered by MHonArc, Updated Wed Jan 13 11:40:02 2010