Skip to content

Commit

Permalink
tentative fixup for Athena tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jun 10, 2023
1 parent 9c868eb commit 33b3c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt/data_objects/index_subobjects/grid_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ def _fill_child_mask(self, child, mask, tofill, dlevel=1):
if dlevel != 1:
rf = rf**dlevel
gi, cgi = self.get_global_startindex(), child.get_global_startindex()
startIndex = np.maximum(0, cgi // rf - gi)
startIndex = np.maximum(0, cgi // rf - gi).astype("int64", copy=False)
endIndex = np.minimum(
(cgi + child.ActiveDimensions) // rf - gi, self.ActiveDimensions
)
).astype("int64", copy=False)
endIndex += startIndex == endIndex
mask[
startIndex[0] : endIndex[0],
Expand Down

0 comments on commit 33b3c1b

Please sign in to comment.