Skip to content

Commit

Permalink
Numpy deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
bethac07 authored Sep 25, 2024
1 parent 1496ae3 commit 94ec6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions active_plugins/histogramequalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def run(self, workspace):
clip_limit = self.clip_limit.value

if self.do_3D.value:
y_data = numpy.zeros_like(x_data, dtype=numpy.float)
y_data = numpy.zeros_like(x_data, dtype=float)
if self.do_framewise.value:
for index, plane in enumerate(x_data):
y_data[index] = skimage.exposure.equalize_adapthist(
Expand All @@ -202,7 +202,7 @@ def run(self, workspace):
)
else:
if self.do_3D.value:
y_data = numpy.zeros_like(x_data, dtype=numpy.float)
y_data = numpy.zeros_like(x_data, dtype=float)
if self.do_framewise.value:
for index, plane in enumerate(x_data):
y_data[index] = skimage.exposure.equalize_hist(
Expand Down

0 comments on commit 94ec6ec

Please sign in to comment.