mailr5310 - /1.3/specific_fns/jw_mapping.py


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

Header


Content

Posted by sebastien . morin . 1 on April 04, 2008 - 16:33:
Author: semor
Date: Fri Apr  4 16:33:02 2008
New Revision: 5310

URL: http://svn.gna.org/viewcvs/relax?rev=5310&view=rev
Log:
Re-introduced the test for the existence of the current pipe and correcte a 
comment.


Modified:
    1.3/specific_fns/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=5310&r1=5309&r2=5310&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Fri Apr  4 16:33:02 2008
@@ -381,6 +381,10 @@
         # Alias the current data pipe.
         cdp = relax_data_store[relax_data_store.current_pipe]
 
+        # Test if the current pipe exists.
+        if not relax_data_store.current_pipe:
+            raise RelaxNoPipeError
+
         # Test if the run type is set to 'jw'.
         function_type = relax_data_store.run_types[cdp.run_names.index]
         if function_type != 'jw':
@@ -388,7 +392,7 @@
 
         # Test if the frequency has been set.
         if hasattr(cdp, 'jw_frq'):
-            raise RelaxError, "The frequency for the run has already been 
set."
+            raise RelaxError, "The frequency has already been set."
 
         # Create the data structure if it doesn't exist.
         if not hasattr(cdp, 'jw_frq'):




Related Messages


Powered by MHonArc, Updated Fri Apr 04 17:00:17 2008