Skip to content

Commit

Permalink
rotate: fix comparison bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schorb committed Nov 8, 2023
1 parent a9c7a15 commit a371ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask_image/ndinterp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def rotate(input_arr, angle, axes=(1, 0), reshape=True, output=None, order=1,
else:
out_plane_shape = img_shape[axes]

if output_shape == img_shape:
if (output_shape == img_shape).all():
output_shape[axes] = out_plane_shape
else:
out_plane_shape = np.asarray(output_shape)[axes]
Expand Down

0 comments on commit a371ebc

Please sign in to comment.