Skip to content

Commit

Permalink
build_evt(): bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Apr 9, 2024
1 parent 3dc2258 commit 1b27b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pygama/evt/build_evt.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ def build_evt(
raise RuntimeError(msg)

# otherwise, increase nesting
if level not in nested_tbl:
if level not in lvl_ptr:
lvl_ptr.add_field(level, Table(size=n_rows))
lvl_ptr = nested_tbl[level]
lvl_ptr = lvl_ptr[level]

# write output fields into outfile
if output_fields:
Expand Down

0 comments on commit 1b27b26

Please sign in to comment.