Skip to content

Commit

Permalink
tentative fixup for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jun 10, 2023
1 parent c534101 commit 9c868eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt/utilities/linear_interpolators.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ def __call__(self, data_object):
y_vals = data_object[self.y_name].ravel().astype("float64")
z_vals = data_object[self.z_name].ravel().astype("float64")

x_i = np.digitize(x_vals, self.x_bins).astype("int64") - 1
y_i = np.digitize(y_vals, self.y_bins).astype("int64") - 1
z_i = np.digitize(z_vals, self.z_bins).astype("int64") - 1
x_i = np.digitize(x_vals, self.x_bins).astype("int_") - 1
y_i = np.digitize(y_vals, self.y_bins).astype("int_") - 1
z_i = np.digitize(z_vals, self.z_bins).astype("int_") - 1
if (
np.any((x_i == -1) | (x_i == len(self.x_bins) - 1))
or np.any((y_i == -1) | (y_i == len(self.y_bins) - 1))
Expand Down

0 comments on commit 9c868eb

Please sign in to comment.