mailr21569 - /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 November 21, 2013 - 10:12:
Author: bugman
Date: Thu Nov 21 10:12:44 2013
New Revision: 21569

URL: http://svn.gna.org/viewcvs/relax?rev=21569&view=rev
Log:
Bug fix for the specific_analyses.relax_disp.disp_data.find_intensity_keys() 
function.

This function was not handling multiple experiment types correctly.


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=21569&r1=21568&r2=21569&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Thu Nov 21 
10:12:44 2013
@@ -258,6 +258,10 @@
     # Loop over all spectrum IDs, returning the matching ID.
     ids = []
     for id in cdp.exp_type.keys():
+        # Skip non-matching experiments.
+        if cdp.exp_type[id] != exp_type:
+            continue
+
         # The spectrometer frequency.
         frq2 = None
         if hasattr(cdp, 'spectrometer_frq'):




Related Messages


Powered by MHonArc, Updated Thu Nov 21 10:40:01 2013