Skip to content

Commit

Permalink
fixed metadata file writing to json from jsonl
Browse files Browse the repository at this point in the history
  • Loading branch information
sariola committed Oct 8, 2024
1 parent 2d7f16b commit 5b6719d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow_judge/utils/result_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write_results_to_disk(
os.makedirs(metadata_folder, exist_ok=True)

Check warning on line 34 in flow_judge/utils/result_writer.py

View check run for this annotation

Codecov / codecov/patch

flow_judge/utils/result_writer.py#L34

Added line #L34 was not covered by tests

base_filename = f"{fmt_metric_name}_{fmt_model_id}_{model_metadata['model_type']}_{timestamp}"
metadata_path = os.path.join(metadata_folder, f"metadata_{base_filename}.jsonl")
metadata_path = os.path.join(metadata_folder, f"metadata_{base_filename}.json")

Check warning on line 37 in flow_judge/utils/result_writer.py

View check run for this annotation

Codecov / codecov/patch

flow_judge/utils/result_writer.py#L37

Added line #L37 was not covered by tests
results_path = os.path.join(metric_folder, f"results_{base_filename}.jsonl")

# Write metadata file
Expand Down

0 comments on commit 5b6719d

Please sign in to comment.