-
Notifications
You must be signed in to change notification settings - Fork 0
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
Kcyganik success msg closes #109 #125
Conversation
2f9afda
to
f97cf34
Compare
art/experiment/Experiment.py
Outdated
for step in self.steps: | ||
self.metric_calculator.compile(step["skipped_metrics"]) | ||
step, checks = step["step"], step["checks"] | ||
|
||
self.state.current_step = step | ||
|
||
if not self.check_if_must_be_run(step, checks): | ||
steps_status[step.get_full_step_name()] = ("Skipped", step.get_results()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use some @dataclasses for this as done in cheks.py. This will be much more readable then just tuple
art/experiment/Experiment.py
Outdated
except Exception as e: | ||
steps_status[step.get_full_step_name()] = ("Failed", step.get_results()) | ||
print(f"Step {step.get_full_step_name()} failed with error: {str(e)}") | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to continue here, it's the philosophy of art. We want to either reraise the exception or just break from the loop. So I'd remove this print and maybe add raised exception to dataclass of step_status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kordc still rest of steps will be run.
f97cf34
to
459514b
Compare
the newest commit closes #108 |
Approve, but If i remember correctly we wanted to save state into a file, so maybe we can do it here...? |
done |
closes #109