Skip to content

Commit

Permalink
fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Oct 9, 2024
1 parent 2337326 commit 8e823c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pygama/evt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@
H5DataLoc = namedtuple(
"H5DataLoc", ("file", "group", "table_fmt"), defaults=3 * (None,)
)
DataInfo = namedtuple("DataInfo", ("raw"), defaults=1 * (None,))
DataInfo = namedtuple("DataInfo", ("raw", "tcm", "evt"), defaults=3 * (None,))

TCMData = namedtuple("TCMData", ("id", "idx", "cumulative_length"))


def make_files_config(data: dict):
if not isinstance(data, tuple):
if "raw" not in data:
data["raw"] = (None,)
if "tcm" not in data:
data["tcm"] = (None,)
if "evt" not in data:
data["evt"] = (None,)
DataInfo = namedtuple(
"DataInfo", tuple(data.keys()), defaults=len(data.keys()) * (None,)
)
Expand Down

0 comments on commit 8e823c0

Please sign in to comment.