Skip to content

Commit

Permalink
Update nnpdf_data/nnpdf_data/theorydbutils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu>
  • Loading branch information
RoyStegeman and scarlehoff authored Jul 31, 2024
1 parent 77fc18a commit f99a84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnpdf_data/nnpdf_data/theorydbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_available_theory_cards(path):
"""
available_theories = {}
for theoryfile in path.glob("*.yaml"):
tmp_id = int(theoryfile.name.removesuffix('.yaml'))
tmp_id = int(theoryfile.stem)
if tmp_id in available_theories:
another = available_theories[tmp_id]
raise ValueError(f"Two theory files with same id: {theoryfile} and {another}")
Expand Down

0 comments on commit f99a84e

Please sign in to comment.