Skip to content

Commit

Permalink
feat: adjust for name change in scikit-hep/awkward#1919. (#788)
Browse files Browse the repository at this point in the history
* refactor: adjust for name change in scikit-hep/awkward#1919.

* If awkward>=2.0.0rc5 contains scikit-hep/awkward#1919, it will become the new minimum version.
  • Loading branch information
jpivarski authored Dec 6, 2022
1 parent 193454e commit 803e80c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"awkward>=2.0.0rc2",
"awkward>=2.0.0rc5",
"importlib-metadata;python_version<\"3.8\"",
"numpy",
"packaging",
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/interpretation/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def group(self, arrays, expression_context, how):
isinstance(array.layout, awkward.contents.ListArray)
or array.layout.offsets[0] != 0
):
array_layout = array.layout.toListOffsetArray64(True)
array_layout = array.layout.to_ListOffsetArray64(True)
else:
array_layout = array.layout
if len(offsets) == 0:
Expand Down
4 changes: 2 additions & 2 deletions src/uproot/writing/_cascadetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def extend(self, file, sink, data):
layout = layout.project()

elif isinstance(layout, awkward.contents.ListArray):
layout = layout.toListOffsetArray64(False)
layout = layout.to_ListOffsetArray64(False)

else:
raise AssertionError(
Expand All @@ -724,7 +724,7 @@ def extend(self, file, sink, data):
content = content.project()

elif isinstance(content, awkward.contents.EmptyArray):
content = content.toNumpyArray()
content = content.to_NumpyArray()

elif isinstance(content, awkward.contents.RegularArray):
shape.append(content.size)
Expand Down

0 comments on commit 803e80c

Please sign in to comment.