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

Make yapf

parent 6163f717
No related branches found
No related tags found
1 merge request!27Refactor offline I/O
...@@ -128,7 +128,6 @@ class OfflineReader: ...@@ -128,7 +128,6 @@ class OfflineReader:
class Usr: class Usr:
"""Helper class to access AAObject `usr`` stuff""" """Helper class to access AAObject `usr`` stuff"""
def __init__(self, mapper, branch, index=None): def __init__(self, mapper, branch, index=None):
self._mapper = mapper self._mapper = mapper
self._name = mapper.name self._name = mapper.name
...@@ -159,8 +158,7 @@ class Usr: ...@@ -159,8 +158,7 @@ class Usr:
# to massively increase the performance. This needs triple check if # to massively increase the performance. This needs triple check if
# it's always the case. # it's always the case.
self._usr_names = [ self._usr_names = [
n.decode("utf-8") n.decode("utf-8") for n in self._branch['usr_names'].lazyarray(
for n in self._branch['usr_names'].lazyarray(
basketcache=BASKET_CACHE)[0] basketcache=BASKET_CACHE)[0]
] ]
self._usr_idx_lookup = { self._usr_idx_lookup = {
...@@ -183,7 +181,9 @@ class Usr: ...@@ -183,7 +181,9 @@ class Usr:
n.decode("utf-8") for n in self.branch['usr_names'].lazyarray( n.decode("utf-8") for n in self.branch['usr_names'].lazyarray(
# TODO this will be fixed soon in uproot, # TODO this will be fixed soon in uproot,
# see https://github.com/scikit-hep/uproot/issues/465 # see https://github.com/scikit-hep/uproot/issues/465
uproot.asgenobj(uproot.SimpleArray(uproot.STLVector(uproot.STLString())), self.branch['usr_names']._context, 6), uproot.asgenobj(
uproot.SimpleArray(uproot.STLVector(uproot.STLString())),
self.branch['usr_names']._context, 6),
basketcache=BASKET_CACHE)[0] basketcache=BASKET_CACHE)[0]
] ]
self.__getitem__ = self.__getitem_nested__ self.__getitem__ = self.__getitem_nested__
......
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