Skip to content

Commit

Permalink
Whoops pushed the wrong version of this file
Browse files Browse the repository at this point in the history
  • Loading branch information
iguinn committed Aug 25, 2024
1 parent 023addd commit c28dfed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pygama/pargen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def load_data(
# Get set of keys in calibration expressions that show up in file
cal_keys = {
name
for expr in cal_dict.values()
for name in compile(expr, "0vbb is real!", "eval").co_names
for info in cal_dict.values()
for name in compile(info["expression"], "0vbb is real!", "eval").co_names
} & file_keys

# Get set of fields to read from files
Expand All @@ -118,7 +118,7 @@ def load_data(
# Evaluate all provided expressions and add to table
for outname, info in cal_dict.items():
table[outname] = table.eval(
info["expression"], local_dict=info.get("parameters", None)
info["expression"], info.get("parameters", None)
)

# Copy params in table into dataframe
Expand Down

0 comments on commit c28dfed

Please sign in to comment.