Author: bugman Date: Wed Nov 12 21:21:39 2008 New Revision: 7981 URL: http://svn.gna.org/viewcvs/relax?rev=7981&view=rev Log: Final fix for bug #12591 (https://gna.org/bugs/index.php?12591). This bug was reported by Chris Brosey (chris dot a dot brosey att vanderbilt dot edu). The problem was that the global_index counter in the model-free model_loop() method was supposed to be incremented at the start of the loop. The deselected spin skipping code was located before this though, causing the counter to not be incremented! Modified: 1.3/specific_fns/model_free/main.py 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=7981&r1=7980&r2=7981&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Wed Nov 12 21:21:39 2008 @@ -1740,12 +1740,12 @@ # Loop over the spins. global_index = -1 for spin in spin_loop(): + # Increment the global spin index. + global_index = global_index + 1 + # Skip deselected spins. if not spin.select: continue - - # Increment the global spin index. - global_index = global_index + 1 # Yield the spin index. yield global_index