mailr19575 - /branches/relax_disp/auto_analyses/relax_disp.py


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

Header


Content

Posted by edward on April 22, 2013 - 00:34:
Author: bugman
Date: Mon Apr 22 00:34:34 2013
New Revision: 19575

URL: http://svn.gna.org/viewcvs/relax?rev=19575&view=rev
Log:
Fixed for the error_analysis() method of the relaxation dispersion 
auto-analysis.

The method can now handle missing spectrometer field strength data.


Modified:
    branches/relax_disp/auto_analyses/relax_disp.py

Modified: branches/relax_disp/auto_analyses/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/auto_analyses/relax_disp.py?rev=19575&r1=19574&r2=19575&view=diff
==============================================================================
--- branches/relax_disp/auto_analyses/relax_disp.py (original)
+++ branches/relax_disp/auto_analyses/relax_disp.py Mon Apr 22 00:34:34 2013
@@ -107,7 +107,7 @@
         """
 
         # The number of spectrometer field strengths.
-        frqs = []
+        frqs = [None]
         if hasattr(cdp, 'frq'):
             frqs = unique_elements(cdp.frq.values())
             frqs.sort()
@@ -126,7 +126,10 @@
                 # Generate a list of spectrum IDs matching the frequency and 
field.
                 ids = []
                 for id in cdp.spectrum_ids:
-                    if cdp.frq[id] == frq and disp_points[id] == field:
+                    match_frq = True
+                    if frq != None and cdp.frq[id] != frq:
+                        match_frq = False
+                    if match_frq and disp_points[id] == field:
                         ids.append(id)
 
                 # Run the error analysis on the subset.




Related Messages


Powered by MHonArc, Updated Mon Apr 22 01:00:02 2013