Skip to content

Commit

Permalink
Merge pull request #952 from cta-observatory/missing_fstrings
Browse files Browse the repository at this point in the history
Fix missing f-strings in io
  • Loading branch information
maxnoe authored Mar 24, 2022
2 parents a39a5df + e118239 commit b1f83fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lstchain/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def check_mcheader(mcheader1, mcheader2):
v1 = mcheader1[k]
v2 = mcheader2[k]
if v1 != v2:
raise ValueError('MC headers do not match for key {k}: {v1!r} / {v2!r}')
raise ValueError(f'MC headers do not match for key {k}: {v1!r} / {v2!r}')


def check_thrown_events_histogram(thrown_events_hist1, thrown_events_hist2):
Expand Down Expand Up @@ -612,7 +612,7 @@ def check_metadata(metadata1, metadata2):
v1 = metadata1[k]
v2 = metadata2[k]
if v1 != v2:
raise ValueError('Metadata does not match for key {k}: {v1!r} / {v2!r}')
raise ValueError(f'Metadata does not match for key {k}: {v1!r} / {v2!r}')


def global_metadata():
Expand Down

0 comments on commit b1f83fa

Please sign in to comment.