Skip to content

Commit

Permalink
fix: casting original images to numpy.float32
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaq503 committed Jan 12, 2024
1 parent bde617b commit 1e6abb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _unshade_batch(
images = [f.result() for f in load_futures]

images = [img for _, img in sorted(images, key=operator.itemgetter(0))]
img_stack = numpy.stack(images, axis=0)
img_stack = numpy.stack(images, axis=0).astype(numpy.float32)

# Apply flatfield correction
if df_image is not None:
Expand Down

0 comments on commit 1e6abb5

Please sign in to comment.