mailr4646 - /branches/consistency_tests_1.3/specific_fns/consistency_tests.py


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

Header


Content

Posted by sebastien . morin . 1 on January 11, 2008 - 17:07:
Author: semor
Date: Fri Jan 11 17:07:38 2008
New Revision: 4646

URL: http://svn.gna.org/viewcvs/relax?rev=4646&view=rev
Log:
Replaced all instances of 'self.run = run' with the alias for the current 
data pipe.


Modified:
    branches/consistency_tests_1.3/specific_fns/consistency_tests.py

Modified: branches/consistency_tests_1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/specific_fns/consistency_tests.py?rev=4646&r1=4645&r2=4646&view=diff
==============================================================================
--- branches/consistency_tests_1.3/specific_fns/consistency_tests.py 
(original)
+++ branches/consistency_tests_1.3/specific_fns/consistency_tests.py Fri Jan 
11 17:07:38 2008
@@ -266,8 +266,8 @@
     def num_instances(self):
         """Function for returning the number of instances."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Test if sequence data is loaded.
         if not relax_data_store.res.has_key(self.run):
@@ -472,8 +472,8 @@
     def set_error(self, instance, spin, error):
         """Function for setting parameter errors."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Return J(0) sim data.
         if index == 0:
@@ -491,8 +491,8 @@
     def sim_return_param(self, instance, spin):
         """Function for returning the array of simulation parameter 
values."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Skip unselected residues.
         if not relax_data_store.res[self.run][instance].select:
@@ -514,8 +514,8 @@
     def sim_return_selected(self, instance):
         """Function for returning the array of selected simulation flags."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Multiple instances.
         return relax_data_store.res[self.run][instance].select_sim
@@ -524,8 +524,8 @@
     def set_selected_sim(self, instance, select_sim):
         """Function for returning the array of selected simulation flags."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Multiple instances.
         relax_data_store.res[self.run][instance].select_sim = select_sim
@@ -596,8 +596,8 @@
     def write_columnar_results(self, file):
         """Function for printing the results into a file."""
 
-        # Arguments.
-        self.run = run
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
 
         # Test if the run exists.
         if not self.run in relax_data_store.run_names:




Related Messages


Powered by MHonArc, Updated Fri Jan 11 17:40:13 2008