Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Jan 18, 2025
1 parent 69bc76b commit 0c503d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tests/functional/harris/harris_2d_100_x_100.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pyphare.simulator.simulator import Simulator, startMPI

from tests.simulator import SimulatorTest
from tools.python3 import plotting as m_plotting

import harris_2d as base

Expand Down Expand Up @@ -131,8 +130,15 @@ def test_run(self):
Simulator(config()).run().reset()
if cpp.mpi_rank() == 0:
plot(diag_dir)

if SCOPE_TIMING:
m_plotting.plot_run_timer_data(diag_dir, cpp.mpi_rank())
try:
from tools.python3 import plotting as m_plotting

m_plotting.plot_run_timer_data(diag_dir, cpp.mpi_rank())
except ImportError:
print("Phlop not found - install with: `pip install phlop`")

cpp.mpi_barrier()
return self

Expand Down
10 changes: 8 additions & 2 deletions tests/functional/harris/harris_2d_100_x_100_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pyphare.simulator.simulator import Simulator, startMPI

from tests.simulator import SimulatorTest
from tools.python3 import plotting as m_plotting

import harris_2d as base

Expand Down Expand Up @@ -131,8 +130,15 @@ def test_run(self):
Simulator(config()).run().reset()
if cpp.mpi_rank() == 0:
plot(diag_dir)

if SCOPE_TIMING:
m_plotting.plot_run_timer_data(diag_dir, cpp.mpi_rank())
try:
from tools.python3 import plotting as m_plotting

m_plotting.plot_run_timer_data(diag_dir, cpp.mpi_rank())
except ImportError:
print("Phlop not found - install with: `pip install phlop`")

cpp.mpi_barrier()
return self

Expand Down

0 comments on commit 0c503d3

Please sign in to comment.