mailr21352 - /trunk/pipe_control/spectrum.py


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

Header


Content

Posted by edward on October 31, 2013 - 09:27:
Author: bugman
Date: Thu Oct 31 09:27:40 2013
New Revision: 21352

URL: http://svn.gna.org/viewcvs/relax?rev=21352&view=rev
Log:
The pipe_control.spectrum.add_spectrum_id() function now returns silently if 
the ID already exists.


Modified:
    trunk/pipe_control/spectrum.py

Modified: trunk/pipe_control/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/spectrum.py?rev=21352&r1=21351&r2=21352&view=diff
==============================================================================
--- trunk/pipe_control/spectrum.py (original)
+++ trunk/pipe_control/spectrum.py Thu Oct 31 09:27:40 2013
@@ -255,7 +255,7 @@
 
     # The ID already exists.
     if spectrum_id in cdp.spectrum_ids:
-        raise RelaxError("The spectrum ID '%s' already exists." % 
spectrum_id)
+        return
 
     # Add the ID.
     cdp.spectrum_ids.append(spectrum_id)




Related Messages


Powered by MHonArc, Updated Thu Oct 31 09:40:02 2013