Skip to content
Snippets Groups Projects
Commit e384b60f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Remove patches

parent c92b061f
No related branches found
No related tags found
1 merge request!47Resolve "uproot4 integration"
......@@ -5,4 +5,3 @@ version = get_distribution(__name__).version
from .offline import OfflineReader
from .online import OnlineReader
from .gseagen import GSGReader
from . import patches
import awkward0 as ak0
import awkward as ak1
# to avoid infinite recursion
old_getitem = ak0.ChunkedArray.__getitem__
def new_getitem(self, item):
"""Monkey patch the getitem in awkward.ChunkedArray to apply
awkward1.Array masks on awkward.ChunkedArray"""
if isinstance(item, (ak1.Array, ak0.ChunkedArray)):
return ak1.Array(self)[item]
else:
return old_getitem(self, item)
ak0.ChunkedArray.__getitem__ = new_getitem
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment