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

feat: support ak.str as dak.str #339

Merged
merged 14 commits into from
Sep 14, 2023
1 change: 1 addition & 0 deletions src/dask_awkward/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import dask_awkward.lib.operations as operations
import dask_awkward.lib.optimize as optimize
import dask_awkward.lib.reducers as reducers
import dask_awkward.lib.str as str
import dask_awkward.lib.structure as structure
from dask_awkward.lib.core import Array, PartitionCompatibility, Record, Scalar
from dask_awkward.lib.core import _type as type
Expand Down
1 change: 1 addition & 0 deletions src/dask_awkward/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import dask_awkward.lib.str as str
from dask_awkward.lib.core import Array, PartitionCompatibility, Record, Scalar
from dask_awkward.lib.core import _type as type
from dask_awkward.lib.core import (
Expand Down
7 changes: 6 additions & 1 deletion src/dask_awkward/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,12 @@ def __awkward_function__(self, func, array_likes, args, kwargs):
try:
fn = getattr(dask_awkward, fn_name)
except AttributeError:
return NotImplemented
try:
import dask_awkward.lib.str

fn = getattr(dask_awkward.str, fn_name)
except AttributeError:
return NotImplemented
return fn(*args, **kwargs)

def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
Expand Down
Loading
Loading