mailr7075 - /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 August 06, 2008 - 16:06:
Author: semor
Date: Wed Aug  6 15:13:23 2008
New Revision: 7075

URL: http://svn.gna.org/viewcvs/relax?rev=7075&view=rev
Log:
Ported r7070, r7072 and r7073 to the consistency tests code.

r7070: http://svn.gna.org/viewcvs/relax?rev=7070&view=rev
r7072: http://svn.gna.org/viewcvs/relax?rev=7072&view=rev
r7073: http://svn.gna.org/viewcvs/relax?rev=7073&view=rev


Modified:
    1.3/specific_fns/consistency_tests.py

Modified: 1.3/specific_fns/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/consistency_tests.py?rev=7075&r1=7074&r2=7075&view=diff
==============================================================================
--- 1.3/specific_fns/consistency_tests.py (original)
+++ 1.3/specific_fns/consistency_tests.py Wed Aug  6 15:13:23 2008
@@ -28,7 +28,7 @@
 # relax module imports.
 from base_class import Common_functions
 from data import Relax_data_store; ds = Relax_data_store()
-from generic_fns.mol_res_spin import exists_mol_res_spin_data, spin_loop
+from generic_fns.mol_res_spin import exists_mol_res_spin_data, 
return_spin_from_index, spin_loop
 from maths_fns.consistency_tests import Consistency
 from physical_constants import N15_CSA, NH_BOND_LENGTH, h_bar, mu0, 
return_gyromagnetic_ratio
 from relax_errors import RelaxError, RelaxFuncSetupError, RelaxNoPipeError, 
RelaxNoSequenceError, RelaxNoValueError, RelaxProtonTypeError, 
RelaxSpinTypeError
@@ -509,10 +509,20 @@
         return spin.select_sim
 
 
-    def set_selected_sim(self, select_sim, spin):
-        """Function for returning the array of selected simulation flags."""
-
-        # Multiple spins.
+    def set_selected_sim(self, model_index, select_sim):
+        """Set the array of selected simulation flags.
+
+        @param model_index: The global spin index, covering the molecule, 
residue, and spin
+                            indices).
+        @type model_index:  int
+        @param select_sim:  The selection flags.
+        @type select_sim:   bool
+        """
+
+        # Get the spin container.
+        spin = return_spin_from_index(model_index)
+
+        # Set the simulation flags.
         spin.select_sim = select_sim
 
 




Related Messages


Powered by MHonArc, Updated Fri Aug 08 07:20:10 2008