Skip to content

Commit

Permalink
Merge pull request #78 from s-scherrer/master
Browse files Browse the repository at this point in the history
fixed np.int
  • Loading branch information
s-scherrer authored Jan 18, 2023
2 parents bbd8241 + db3192b commit 3280872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pygeogrids/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def gpi2rowcol(self, gpi):
pos = np.searchsorted(self.gpis[gpisorted], gpi)
index = gpisorted[pos]

index_lat = (index / self.shape[1]).astype(np.int)
index_lat = (index / self.shape[1]).astype(np.int64)
index_lon = index % self.shape[1]
if not iterable:
index_lat = index_lat[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def setUp(self):
shape=(len(self.londim),
len(self.latdim)),
subset=np.arange(self.lon.flatten().size / 2,
dtype=np.int))
dtype=np.int64))
self.cellgrid = self.grid.to_cell_grid()

def test_gpi2cell(self):
Expand Down

0 comments on commit 3280872

Please sign in to comment.