File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11
11
from pyphare .simulator .simulator import Simulator , startMPI
12
12
13
13
from tests .simulator import SimulatorTest
14
- from tools .python3 import plotting as m_plotting
15
14
16
15
import harris_2d as base
17
16
@@ -131,8 +130,15 @@ def test_run(self):
131
130
Simulator (config ()).run ().reset ()
132
131
if cpp .mpi_rank () == 0 :
133
132
plot (diag_dir )
133
+
134
134
if SCOPE_TIMING :
135
- m_plotting .plot_run_timer_data (diag_dir , cpp .mpi_rank ())
135
+ try :
136
+ from tools .python3 import plotting as m_plotting
137
+
138
+ m_plotting .plot_run_timer_data (diag_dir , cpp .mpi_rank ())
139
+ except ImportError :
140
+ print ("Phlop not found - install with: `pip install phlop`" )
141
+
136
142
cpp .mpi_barrier ()
137
143
return self
138
144
Original file line number Diff line number Diff line change 11
11
from pyphare .simulator .simulator import Simulator , startMPI
12
12
13
13
from tests .simulator import SimulatorTest
14
- from tools .python3 import plotting as m_plotting
15
14
16
15
import harris_2d as base
17
16
@@ -131,8 +130,15 @@ def test_run(self):
131
130
Simulator (config ()).run ().reset ()
132
131
if cpp .mpi_rank () == 0 :
133
132
plot (diag_dir )
133
+
134
134
if SCOPE_TIMING :
135
- m_plotting .plot_run_timer_data (diag_dir , cpp .mpi_rank ())
135
+ try :
136
+ from tools .python3 import plotting as m_plotting
137
+
138
+ m_plotting .plot_run_timer_data (diag_dir , cpp .mpi_rank ())
139
+ except ImportError :
140
+ print ("Phlop not found - install with: `pip install phlop`" )
141
+
136
142
cpp .mpi_barrier ()
137
143
return self
138
144
You can’t perform that action at this time.
0 commit comments