mailr19747 - /branches/relax_disp/specific_analyses/relax_disp/disp_data.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on May 27, 2013 - 14:35:
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
 
 




Related Messages


Powered by MHonArc, Updated Tue May 28 09:40:02 2013