Author: bugman Date: Wed Mar 25 22:42:30 2009 New Revision: 8999 URL: http://svn.gna.org/viewcvs/relax?rev=8999&view=rev Log: Removed the check for spin selection so that determine_model_type() works with nothing selected. This is a partial response to bug #13259 (https://gna.org/bugs/index.php?13259) reported by Pierre-Yves Savard (pierre-yves dot savard att bcm dot ulaval dot ca). 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=8999&r1=8998&r2=8999&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Wed Mar 25 22:42:30 2009 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2003-2008 Edward d'Auvergne # +# Copyright (C) 2003-2009 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -993,10 +993,6 @@ # Check if any model-free parameters are allowed to vary. mf_all_fixed = True for spin in spin_loop(): - # Skip deselected spins. - if not spin.select: - continue - # Test the fixed flag. if not hasattr(spin, 'fixed'): mf_all_fixed = False @@ -1786,10 +1782,6 @@ for spin in spin_loop(): # Increment the global spin index. global_index = global_index + 1 - - # Skip deselected spins. - if not spin.select: - continue # Yield the spin index. yield global_index