From bb444b9eda8dade8a1c229e00f20bd13513a25c9 Mon Sep 17 00:00:00 2001 From: Nicolas Aunai Date: Fri, 20 Sep 2024 10:44:08 +0200 Subject: [PATCH] pr --- pyphare/pyphare/pharesee/hierarchy/hierarchy.py | 2 +- tests/simulator/test_advance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyphare/pyphare/pharesee/hierarchy/hierarchy.py b/pyphare/pyphare/pharesee/hierarchy/hierarchy.py index 0434860a6..be40d84bf 100644 --- a/pyphare/pyphare/pharesee/hierarchy/hierarchy.py +++ b/pyphare/pyphare/pharesee/hierarchy/hierarchy.py @@ -381,7 +381,7 @@ def plot_2d_patches(self, ilvl, collections, **kwargs): ij[i0 : i1 + 1, j0 : j1 + 1] = value if "coords" in collection: for coords in collection["coords"]: - ij[box] = collection["value"] + ij[coords] = collection["value"] ax.pcolormesh(ix, iy, ij.T, edgecolors="k", cmap="jet") ax.set_xticks(ix) diff --git a/tests/simulator/test_advance.py b/tests/simulator/test_advance.py index 7907f17c1..1b809add5 100644 --- a/tests/simulator/test_advance.py +++ b/tests/simulator/test_advance.py @@ -47,7 +47,7 @@ def getHierarchy( largest_patch_size=20, cells=120, time_step=0.001, - model_init={"seed": 2}, + model_init={}, dl=0.2, extra_diag_options={}, time_step_nbr=1,