Author: bugman Date: Mon May 6 12:18:30 2013 New Revision: 19664 URL: http://svn.gna.org/viewcvs/relax?rev=19664&view=rev Log: The reference spectrum is now not included when counting the number of dispersion points. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=19664&r1=19663&r2=19664&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Mon May 6 12:18:30 2013 @@ -60,8 +60,10 @@ cdp.cpmg_frqs_list.append(cdp.cpmg_frqs[spectrum_id]) cdp.cpmg_frqs_list.sort() - # Update the exponential curve count. + # Update the exponential curve count (skipping the reference if present). cdp.dispersion_points = len(cdp.cpmg_frqs_list) + if None in cdp.cpmg_frqs_list: + cdp.dispersion_points -= 1 # Printout. print("Setting the '%s' spectrum CPMG frequency %s Hz." % (spectrum_id, cdp.cpmg_frqs[spectrum_id])) @@ -390,8 +392,10 @@ cdp.spin_lock_nu1_list.append(cdp.spin_lock_nu1[spectrum_id]) cdp.spin_lock_nu1_list.sort() - # Update the exponential curve count. + # Update the exponential curve count (skipping the reference if present). cdp.dispersion_points = len(cdp.spin_lock_nu1_list) + if None in cdp.spin_lock_nu1_list: + cdp.dispersion_points -= 1 # Printout. print("Setting the '%s' spectrum spin-lock field strength to %s kHz." % (spectrum_id, cdp.spin_lock_nu1[spectrum_id]/1000.0))