Author: bugman Date: Tue May 28 17:37:22 2013 New Revision: 19759 URL: http://svn.gna.org/viewcvs/relax?rev=19759&view=rev Log: The relaxation dispersion loop_point() function can now return the reference point. This is enabled via the skip_ref argument. 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=19759&r1=19758&r2=19759&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Tue May 28 17:37:22 2013 @@ -235,11 +235,13 @@ yield frq, point, time -def loop_point(): +def loop_point(skip_ref=True): """Generator method for looping over the dispersion points. - @return: Dispersion point data (either the spin-lock field strength in Hz or the nu_CPMG frequency in Hz). - @rtype: float + @keyword skip_ref: A flag which if True will cause the reference point to be skipped. + @type skip_ref: bool + @return: Dispersion point data (either the spin-lock field strength in Hz or the nu_CPMG frequency in Hz). + @rtype: float """ # CPMG type data. @@ -253,7 +255,7 @@ # Loop over the field data. for field in fields: # Skip the reference. - if field == None: + if skip_ref and field == None: continue # Yield each unique field strength or frequency.