Skip to content

Commit

Permalink
fix: create metrics directory if not exists (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-encord authored Mar 10, 2023
1 parent 646c368 commit ef92be5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/encord_active/lib/metrics/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ def fetch_metrics_meta(project_dir: Path):

def update_metrics_meta(project_dir: Path, updated_meta: dict):
meta_file_path = project_dir / "metrics" / "metrics_meta.json"
meta_file_path.parent.mkdir(exist_ok=True)
meta_file_path.write_text(json.dumps(updated_meta, indent=2), encoding="utf-8")

0 comments on commit ef92be5

Please sign in to comment.