Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxed type check of input array, to allow da.core.Array sub-classes… #361

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dask_image/ndinterp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def affine_transform(

"""

if not type(image) == da.core.Array:
if not isinstance(image, da.core.Array):
image = da.from_array(image)

if output_shape is None:
Expand Down Expand Up @@ -328,7 +328,7 @@ def rotate(
(724, 724)

"""
if not type(input_arr) == da.core.Array:
if not isinstance(input_arr, da.core.Array):
input_arr = da.from_array(input_arr)

if output_chunks is None:
Expand Down Expand Up @@ -434,7 +434,7 @@ def spline_filter(
**kwargs
):

if not type(image) == da.core.Array:
if not isinstance(image, da.core.Array):
image = da.from_array(image)

# use dispatching mechanism to determine backend
Expand Down Expand Up @@ -492,7 +492,7 @@ def spline_filter1d(
**kwargs
):

if not type(image) == da.core.Array:
if not isinstance(image, da.core.Array):
image = da.from_array(image)

# use dispatching mechanism to determine backend
Expand Down