From 1b27b26edcb0715f84145f5c974ece4fc16e45a5 Mon Sep 17 00:00:00 2001 From: Luigi Pertoldi Date: Tue, 9 Apr 2024 16:05:09 +0200 Subject: [PATCH] build_evt(): bug fix --- src/pygama/evt/build_evt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pygama/evt/build_evt.py b/src/pygama/evt/build_evt.py index f78a3ff87..20ffa5edc 100644 --- a/src/pygama/evt/build_evt.py +++ b/src/pygama/evt/build_evt.py @@ -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: