Refactor offline
Compare changes
Files
2- Tamas Gal authored
+ 12
− 9
@@ -6,6 +6,7 @@ import uproot
@@ -56,8 +57,8 @@ class Branch:
@@ -132,6 +133,7 @@ class Branch:
@@ -165,7 +167,8 @@ class Usr:
@@ -207,12 +210,12 @@ class Usr:
This refactoring includes some slicing and performance improvement attempts.
The slicing is still experimental and has some flaws:
f.events.tracks[idx_list, 0]
where idx_list
is a huge list of indicesfor track in f.evens.tracks
does not stop after the last elementf.events[5][23][420]
is simply f.events[420]
since the index/slice is not chained but overwritten when propagated. We need custom checks whether it makes sense
[x][y]
does not make sense, it should throw an errorf.events[5:23][4]
should effectively be the same as f.events[9]
due to chaining of slice/index