mailr15407 - in /1.3/multi: __init__.py processor.py


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

Header


Content

Posted by edward on February 29, 2012 - 13:42:
Author: bugman
Date: Wed Feb 29 13:42:09 2012
New Revision: 15407

URL: http://svn.gna.org/viewcvs/relax?rev=15407&view=rev
Log:
Removed the RelaxError import.

This was supposed to be only temporary.  Now the multi-processor package is 
100% independent of
relax again.


Modified:
    1.3/multi/__init__.py
    1.3/multi/processor.py

Modified: 1.3/multi/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/multi/__init__.py?rev=15407&r1=15406&r2=15407&view=diff
==============================================================================
--- 1.3/multi/__init__.py (original)
+++ 1.3/multi/__init__.py Wed Feb 29 13:42:09 2012
@@ -31,6 +31,9 @@
 
 __doc__ = \
 """Package for multi-processor code execution."""
+
+# Python module imports.
+import sys
 
 
 def _import_module(module_path, verbose=False):
@@ -86,7 +89,8 @@
 
     # Check that the processor type is supported.
     if processor_name not in ['uni', 'mpi4py']:
-        raise RelaxError("The processor type '%s' is not supported." % 
processor_name)
+        sys.stderr.write("The processor type '%s' is not supported.\n" % 
processor_name)
+        sys.exit()
 
     # The Processor details.
     processor_name = processor_name + '_processor'

Modified: 1.3/multi/processor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/multi/processor.py?rev=15407&r1=15406&r2=15407&view=diff
==============================================================================
--- 1.3/multi/processor.py (original)
+++ 1.3/multi/processor.py Wed Feb 29 13:42:09 2012
@@ -104,7 +104,6 @@
 
 # relax module imports.
 from multi.processor_io import Redirect_text
-from relax_errors import RelaxError
 
 
 def raise_unimplemented(method):




Related Messages


Powered by MHonArc, Updated Wed Feb 29 14:00:01 2012