Skip to content

Commit

Permalink
fix: copy_root when selecting size with entry numbers, losing 100 ent…
Browse files Browse the repository at this point in the history
…ries (#103)

* fixed branch slimming

* linter

* Another small fix with copy_root
  • Loading branch information
zbilodea authored Jul 3, 2024
1 parent f5e127a commit 1520c22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hepconvert/copy_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ def copy_root(
initial_basket_capacity=initial_basket_capacity,
resize_factor=resize_factor,
)

try:
of[tree.name].extend(chunk)
except AssertionError:
msg = "Are the branch-names correct?"
else:
try:
of[tree.name].extend(chunk)
Expand Down

0 comments on commit 1520c22

Please sign in to comment.