mailr15457 - /1.3/multi/mpi4py_processor.py


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

Header


Content

Posted by edward on March 07, 2012 - 16:45:
Author: bugman
Date: Wed Mar  7 16:45:24 2012
New Revision: 15457

URL: http://svn.gna.org/viewcvs/relax?rev=15457&view=rev
Log:
Removal of another relax dependency from the multi-processor package and 
elimination of "^[[1034h".

This should hopefully be the last relax dependency removed.  This import of 
dep_check was the source
of the "^[[1034h" character being printed at the start of the relax stdout 
stream, though the reason
for it's existence is unclear!


Modified:
    1.3/multi/mpi4py_processor.py

Modified: 1.3/multi/mpi4py_processor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/multi/mpi4py_processor.py?rev=15457&r1=15456&r2=15457&view=diff
==============================================================================
--- 1.3/multi/mpi4py_processor.py (original)
+++ 1.3/multi/mpi4py_processor.py Wed Mar  7 16:45:24 2012
@@ -28,12 +28,11 @@
 # TODO: clone communicators & resize
 # TODO: check exceptions on master
 
-# Dependency check module.
-import dep_check
-
 # Python module imports.
-if dep_check.mpi4py_module:
+try:
     from mpi4py import MPI
+except ImportError:
+    MPI = None
 import os
 import sys
 import textwrap




Related Messages


Powered by MHonArc, Updated Wed Mar 07 17:00:01 2012