diff --git a/pyphare/pyphare/pharesee/hierarchy.py b/pyphare/pyphare/pharesee/hierarchy.py index a1c254036..2fe59e789 100644 --- a/pyphare/pyphare/pharesee/hierarchy.py +++ b/pyphare/pyphare/pharesee/hierarchy.py @@ -746,10 +746,10 @@ def global_min(self, qty, **kwargs): for patch in lvl.patches: pd = patch.patch_datas[qty] if first: - m = pd.dataset[:].min() + m = np.nanmin(pd.dataset[:]) first = False else: - m = min(m, pd.dataset[:].min()) + m = min(m, np.nanmin(pd.dataset[:])) return m @@ -760,10 +760,10 @@ def global_max(self, qty, **kwargs): for patch in lvl.patches: pd = patch.patch_datas[qty] if first: - m = pd.dataset[:].max() + m = np.nanmax(pd.dataset[:]) first = False else: - m = max(m, pd.dataset[:].max()) + m = max(m, np.nanmax(pd.dataset[:])) return m