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:
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-commits mailing list
relax-commits@xxxxxxx
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits