Skip to content

Commit

Permalink
Fix deprecated np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzamuto committed Jan 8, 2024
1 parent cbdcba5 commit 8c5c6db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zetastitcher/align/filematrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ def compute_end_pos(self):
def compute_nominal_positions(self, px_size_z, px_size_xy):
df = self.data_frame

df['Xs'] = (df['X'] // px_size_xy).astype(np.int)
df['Ys'] = (df['Y'] // px_size_xy).astype(np.int)
df['Xs'] = (df['X'] // px_size_xy).astype(np.int64)
df['Ys'] = (df['Y'] // px_size_xy).astype(np.int64)

df['Zs'] = (df['Z'] // px_size_z).astype(np.int)
df['Zs'] = (df['Z'] // px_size_z).astype(np.int64)

self.compute_end_pos()

Expand Down

0 comments on commit 8c5c6db

Please sign in to comment.