Skip to content

Commit

Permalink
ignore no meta
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Oct 1, 2024
1 parent 68bc3b8 commit 2d1eb3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modelevaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def metadata_confusion(dir, confusion_file, after_date=None, model_metadata=None
dir = Path(dir)
for cptv_file in dir.glob(f"**/*cptv"):
meta_f = cptv_file.with_suffix(".txt")
if not meta_f.exists():
continue
meta_data = None
with open(meta_f, "r") as t:
# add in some metadata stats
Expand Down

0 comments on commit 2d1eb3f

Please sign in to comment.