mailr21957 - /trunk/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 January 13, 2014 - 10:10:
Author: bugman
Date: Mon Jan 13 10:10:40 2014
New Revision: 21957

URL: http://svn.gna.org/viewcvs/relax?rev=21957&view=rev
Log:
Fix for bug #21460, the failure of relaxation dispersion due to incorrect 
spectrometer information.

This is the bug https://gna.org/bugs/?21460, reported by Min-Kyu Cho (min-kyu 
dott cho att live dot
com).

There was only one place in the dispersion analysis which failed due to a 
spectrometer frequency not
containing any relaxation data - in the insignificance testing in the 
auto-analysis.


Modified:
    trunk/specific_analyses/relax_disp/disp_data.py

Modified: trunk/specific_analyses/relax_disp/disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/disp_data.py?rev=21957&r1=21956&r2=21957&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/disp_data.py (original)
+++ trunk/specific_analyses/relax_disp/disp_data.py Mon Jan 13 10:10:40 2014
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2004-2013 Edward d'Auvergne                                  
 #
+# Copyright (C) 2004-2014 Edward d'Auvergne                                  
 #
 # Copyright (C) 2009 Sebastien Morin                                         
 #
 # Copyright (C) 2013 Troels E. Linnet                                        
 #
 #                                                                            
 #
@@ -626,6 +626,10 @@
         # Loop over the experiments, magnetic fields, and offsets.
         max_diff = 0.0
         for exp_type, frq, offset, ei, mi, oi in 
loop_exp_frq_offset(return_indices=True):
+            # No data.
+            if not len(values[ei][0][mi][oi]):
+                continue
+
             # The difference.
             diff = values[ei][0][mi][oi].max() - values[ei][0][mi][oi].min()
 




Related Messages


Powered by MHonArc, Updated Mon Jan 13 10:20:02 2014