Skip to content

Commit

Permalink
Fix update json script
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Dec 7, 2023
1 parent 82113d8 commit 57df535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/topeft_run2/update_json_sow.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main():
for fpath in hist_paths:
h = get_hist_from_pkl(fpath)
h_sow_nom = h[wgt_name_dict['nom']['hist_name']] # Note, just using nom here (so we assume all histos include the same samples)
idents = h_sow_nom.identifiers('sample') # This is the list of identifiers for the sample axis
idents = h_sow_nom.axes['process'] # This is the list of identifiers for the sample axis

Check warning on line 116 in analysis/topeft_run2/update_json_sow.py

View check run for this annotation

Codecov / codecov/patch

analysis/topeft_run2/update_json_sow.py#L116

Added line #L116 was not covered by tests
for sname in idents:
match = regex_match(json_fpaths,regex_lst=[f"{sname}\\.json$"])
if len(match) != 1:
Expand Down

0 comments on commit 57df535

Please sign in to comment.