Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanMolinier authored and valosekj committed Dec 12, 2024
1 parent 9434828 commit 86c2034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute_metrics_reloaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def main():
raise ValueError(f'If used, both -ref-map and -pred-map must be provided.')

# Load JSON mapping if provided
if any((args.ref_map is None, args.pred_map is None)):
if not any((args.ref_map is None, args.pred_map is None)):
# Load JSON files and create a dictionary
with open(args.ref_map, "r") as file:
ref_map = json.load(file)
Expand Down

0 comments on commit 86c2034

Please sign in to comment.