Skip to content

Commit b334981

Browse files
Removing unneeded check
1 parent bc153c5 commit b334981

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/blosc2/proxy.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -713,13 +713,7 @@ def apply(cls, data, func, args, kwargs, decorator, axis):
713713
"""
714714
data = cls._ensure_numpy_data(data)
715715
func = decorator(func)
716-
if data.ndim in (1, 2):
717-
return func(data, *args, **kwargs)
718-
else:
719-
raise NotImplementedError(
720-
"The blosc2 engine only supports data with with 1 or 2 dimensions. "
721-
f"A NumPy array with {data.ndim} dimensions has been received."
722-
)
716+
return func(data, *args, **kwargs)
723717

724718

725719
jit.__pandas_udf__ = PandasUdfEngine

0 commit comments

Comments
 (0)