Skip to content

Commit 2f190ca

Browse files
committed
++
1 parent 8c3fa9b commit 2f190ca

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

tests/functional/harris/harris_2d_100_x_100.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pyphare.simulator.simulator import Simulator, startMPI
1212

1313
from tests.simulator import SimulatorTest
14-
from tools.python3 import plotting as m_plotting
1514

1615
import harris_2d as base
1716

@@ -131,8 +130,15 @@ def test_run(self):
131130
Simulator(config()).run().reset()
132131
if cpp.mpi_rank() == 0:
133132
plot(diag_dir)
133+
134134
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+
136142
cpp.mpi_barrier()
137143
return self
138144

tests/functional/harris/harris_2d_100_x_100_slow.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pyphare.simulator.simulator import Simulator, startMPI
1212

1313
from tests.simulator import SimulatorTest
14-
from tools.python3 import plotting as m_plotting
1514

1615
import harris_2d as base
1716

@@ -131,8 +130,15 @@ def test_run(self):
131130
Simulator(config()).run().reset()
132131
if cpp.mpi_rank() == 0:
133132
plot(diag_dir)
133+
134134
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+
136142
cpp.mpi_barrier()
137143
return self
138144

0 commit comments

Comments
 (0)