mailr7538 - in /1.3/specific_fns: base_class.py model_free/main.py


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

Header


Content

Posted by edward on October 06, 2008 - 23:13:
Author: bugman
Date: Mon Oct  6 23:13:50 2008
New Revision: 7538

URL: http://svn.gna.org/viewcvs/relax?rev=7538&view=rev
Log:
Fix for the 'select_sim' list setting methods.

The copy.deepcopy() function is now used to set 'select_sim' so that the 
lists from different spins
are no longer actually exactly the same list.


Modified:
    1.3/specific_fns/base_class.py
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/base_class.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/base_class.py?rev=7538&r1=7537&r2=7538&view=diff
==============================================================================
--- 1.3/specific_fns/base_class.py (original)
+++ 1.3/specific_fns/base_class.py Mon Oct  6 23:13:50 2008
@@ -307,7 +307,7 @@
         """
 
         # Set the array.
-        spin.select_sim = select_sim
+        spin.select_sim = deepcopy(select_sim)
 
 
     def set_update(self, param, spin):

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=7538&r1=7537&r2=7538&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Mon Oct  6 23:13:50 2008
@@ -2764,7 +2764,7 @@
             spin = return_spin_from_index(model_index)
 
             # Set the simulation flags.
-            spin.select_sim = select_sim
+            spin.select_sim = deepcopy(select_sim)
 
 
     def set_update(self, param, spin):




Related Messages


Powered by MHonArc, Updated Mon Oct 06 23:40:03 2008