Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rochSmets committed Jan 26, 2024
1 parent 23fe625 commit a2c803d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyphare/pyphare/pharesee/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit a2c803d

Please sign in to comment.