Skip to content

Commit

Permalink
Merge pull request #926 from agoose77/agoose77/refactor-use-dask-method
Browse files Browse the repository at this point in the history
feat: use new dask methods
  • Loading branch information
lgray authored Nov 30, 2023
2 parents fbf7126 + 2dfddd4 commit be3d18a
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 219 deletions.
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

0 comments on commit be3d18a

Please sign in to comment.