Skip to content

Commit

Permalink
Use 'bool' instead of np.bool, 'int' instead of np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazen Babcock authored and Hazen Babcock committed Feb 23, 2024
1 parent 26e4f80 commit 8ce123a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storm_analysis/multi_plane/measure_psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def measurePSF(zstack_name, zfile_name, psf_name, pixel_size = 0.1, refine = Fal
psfs = []
for i in range(len(zstacks)):
psf = numpy.zeros((max_z, x_size, y_size))
totals = numpy.zeros(max_z, dtype = numpy.int)
totals = numpy.zeros(max_z, dtype = int)

for j in range(n_frames):

Expand Down
2 changes: 1 addition & 1 deletion storm_analysis/multi_plane/psf_localizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def psfLocalizations(h5_filename, mapping_filename, frame = 0, aoi_size = 8, min
# Remove localizations that are too close to the edge or
# outside of the image in any of the channels.
#
is_good = numpy.ones(xf.size, dtype = numpy.bool)
is_good = numpy.ones(xf.size, dtype = bool)
for i in range(xf.size):

# Check in Channel 0.
Expand Down

0 comments on commit 8ce123a

Please sign in to comment.