Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log output dir at end of run #912

Merged
merged 18 commits into from
Nov 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion armory/scenarios/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def _save(self, output: dict):
override_name if override_name else output["config"]["scenario"]["name"]
)
filename = f"{scenario_name}_{output['timestamp']}.json"
logger.info(f"Saving evaluation results saved to <output_dir>/{filename}")
logger.info(
f"Saving evaluation results to {scenario_output_dir}/{filename} path "
f"inside container."
)
with open(os.path.join(scenario_output_dir, filename), "w") as f:
f.write(json.dumps(output, sort_keys=True, indent=4) + "\n")

Expand Down