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: use new dask methods #926

Merged
merged 10 commits into from
Nov 30, 2023
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies = [
"awkward>=2.5.0",
"uproot>=5.1.2",
"dask[array]>=2023.4.0",
"dask-awkward>=2023.11.3",
"dask-awkward>=2023.11.4",
"dask-histogram>=2023.10.0",
"correctionlib>=2.3.3",
"pyarrow>=6.0.0",
Expand Down
5 changes: 2 additions & 3 deletions src/coffea/nanoevents/methods/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ class NanoEvents(Systematic):
This mixin class is used as the top-level type for NanoEvents objects.
"""

def get_metadata(self, _dask_array_=None):
@dask_awkward.dask_property(no_dispatch=True)
def metadata(self):
"""Arbitrary metadata"""
return self.layout.purelist_parameter("metadata")

metadata = property(get_metadata)


behavior[("__typestr__", "NanoEvents")] = "event"

Expand Down
Loading
Loading