mailr19901 - /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 June 06, 2013 - 18:32:
Author: bugman
Date: Thu Jun  6 18:32:36 2013
New Revision: 19901

URL: http://svn.gna.org/viewcvs/relax?rev=19901&view=rev
Log:
The return_index_from_frq() now handles missing frequency information.

This is in the specific_analyses.relax_disp.disp_data module.


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=19901&r1=19900&r2=19901&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Thu Jun  6 
18:32:36 2013
@@ -428,6 +428,10 @@
     @rtype:         int
     """
 
+    # No frequency present.
+    if value == None:
+        return None
+
     # Return the index.
     return cdp.spectrometer_frq_list.index(value)
 




Related Messages


Powered by MHonArc, Updated Thu Jun 06 18:40:01 2013