Commit 4e71a7b5 authored by Theo Steininger's avatar Theo Steininger
Browse files

Removed direct dependency on mpi4py from Plotter.

parent c5832e8b
Pipeline #12353 passed with stage
in 5 minutes and 28 seconds
...@@ -5,6 +5,8 @@ import os ...@@ -5,6 +5,8 @@ import os
import numpy as np import numpy as np
import d2o
from keepers import Loggable from keepers import Loggable
from nifty.config import dependency_injector as gdi from nifty.config import dependency_injector as gdi
...@@ -22,9 +24,8 @@ try: ...@@ -22,9 +24,8 @@ try:
except AttributeError: except AttributeError:
pass pass
from mpi4py import MPI rank = d2o.config.dependency_injector[
comm = MPI.COMM_WORLD d2o.configuration['mpi_module']].COMM_WORLD.rank
rank = comm.rank
class Plotter(Loggable, object): class Plotter(Loggable, object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment