Author: bugman Date: Wed Nov 20 09:19:37 2013 New Revision: 21534 URL: http://svn.gna.org/viewcvs/relax?rev=21534&view=rev Log: Fix for the dispersion base_data_loop() method for deselected spins. A recent change broke this function when spins were deselected. Modified: branches/relax_disp/specific_analyses/relax_disp/api.py Modified: branches/relax_disp/specific_analyses/relax_disp/api.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/api.py?rev=21534&r1=21533&r2=21534&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/api.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/api.py Wed Nov 20 09:19:37 2013 @@ -706,12 +706,12 @@ # Loop over the sequence. for spin, spin_id in spin_loop(return_id=True): + # Skip deselected spins. + if not spin.select: + continue + # Skip protons for MMQ data. if spin.model in MODEL_LIST_MMQ and spin.isotope == '1H': - continue - - # Skip deselected spins. - if not spin.select: continue # Get the attached proton.