Author: bugman Date: Mon May 27 14:35:27 2013 New Revision: 19747 URL: http://svn.gna.org/viewcvs/relax?rev=19747&view=rev Log: The specific_analyses.relax_disp.disp_data.loop_frq() function can now handle missing data. This allows the loop to yield a single value of None when the spectrometer information has not been loaded and enables R1rho analyses at a single field strength. 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=19747&r1=19746&r2=19747&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 27 14:35:27 2013 @@ -178,8 +178,13 @@ @rtype: float """ + # Handle missing frequency data. + frqs = [None] + if hasattr(cdp, 'spectrometer_frq_list'): + frqs = cdp.spectrometer_frq_list + # Yield each unique spectrometer field strength. - for field in cdp.spectrometer_frq_list: + for field in frqs: yield field