mailr7072 - /1.3/specific_fns/jw_mapping.py


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

Header


Content

Posted by edward on August 05, 2008 - 23:06:
Author: bugman
Date: Tue Aug  5 22:22:15 2008
New Revision: 7072

URL: http://svn.gna.org/viewcvs/relax?rev=7072&view=rev
Log:
Fixes for the J(w) mapping set_selected_sim() method.

The spin index and not spin container is passed into the method.


Modified:
    1.3/specific_fns/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=7072&r1=7071&r2=7072&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Tue Aug  5 22:22:15 2008
@@ -451,16 +451,20 @@
         return spin.select_sim
 
 
-    def set_selected_sim(self, spin, select_sim):
+    def set_selected_sim(self, model_index, select_sim):
         """Set the array of selected simulation flags.
 
-        @param spin:        The spin container object.
-        @type spin:         SpinContainer instance
+        @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
         """
 
-        # Multiple spins.
+        # 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 Tue Aug 05 23:20:13 2008