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

Kcyganik success msg closes #109 #125

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Kcyganik success msg closes #109 #125

merged 3 commits into from
Oct 17, 2023

Conversation

kordc
Copy link
Collaborator

@kordc kordc commented Oct 10, 2023

closes #109

@kordc
Copy link
Collaborator Author

kordc commented Oct 10, 2023

For now, it looks good, but it doesn't have a message about metric scores. Do we want it?

image

@kordc kordc force-pushed the kcyganik-success-msg branch from 2f9afda to f97cf34 Compare October 10, 2023 12:44
@kordc
Copy link
Collaborator Author

kordc commented Oct 10, 2023

Now it is better:
image

SebChw
SebChw previously requested changes Oct 10, 2023
art/experiment/Experiment.py Outdated Show resolved Hide resolved
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())
Copy link
Owner

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 Show resolved Hide resolved
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
Copy link
Owner

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

Copy link
Owner

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.

art/experiment/Experiment.py Outdated Show resolved Hide resolved
art/experiment/Experiment.py Outdated Show resolved Hide resolved
@kordc kordc force-pushed the kcyganik-success-msg branch from f97cf34 to 459514b Compare October 10, 2023 18:19
@kordc
Copy link
Collaborator Author

kordc commented Oct 10, 2023

the newest commit closes #108

@trebacz626 trebacz626 self-requested a review October 11, 2023 19:42
trebacz626
trebacz626 previously approved these changes Oct 11, 2023
@trebacz626
Copy link
Collaborator

Approve, but If i remember correctly we wanted to save state into a file, so maybe we can do it here...?

@kordc
Copy link
Collaborator Author

kordc commented Oct 13, 2023

Approve, but If i remember correctly we wanted to save state into a file, so maybe we can do it here...?

done

@kordc kordc merged commit 417caaf into develop Oct 17, 2023
@kordc kordc deleted the kcyganik-success-msg branch October 17, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants