Author: bugman Date: Thu Oct 31 09:56:38 2013 New Revision: 21355 URL: http://svn.gna.org/viewcvs/relax?rev=21355&view=rev Log: Fix for the dispersion specific check_exp_type() function for a mistake in r21354. Modified: branches/relax_disp/specific_analyses/relax_disp/checks.py Modified: branches/relax_disp/specific_analyses/relax_disp/checks.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/checks.py?rev=21355&r1=21354&r2=21355&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/checks.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/checks.py Thu Oct 31 09:56:38 2013 @@ -88,9 +88,10 @@ raise RelaxError("The dispersion experiment type for the experiment ID '%s' has not been set." % id) # Check each spectrum ID. - for id in cdp.spectrum_ids: - if id not in cdp.exp_type.keys(): - raise RelaxError("The relaxation dispersion experiment type has not been set for the '%s' spectrum." % id) + else: + for id in cdp.spectrum_ids: + if id not in cdp.exp_type: + raise RelaxError("The relaxation dispersion experiment type has not been set for the '%s' spectrum." % id) def check_exp_type_fixed_time():