-
Notifications
You must be signed in to change notification settings - Fork 18
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
Refactor Result Saving #841
Refactor Result Saving #841
Conversation
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.4.1 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
086cec9
to
78a6b5c
Compare
Codecov Report
@@ Coverage Diff @@
## main #841 +/- ##
=======================================
- Coverage 84.9% 84.5% -0.4%
=======================================
Files 77 79 +2
Lines 4372 4522 +150
Branches 785 826 +41
=======================================
+ Hits 3712 3824 +112
- Misses 521 556 +35
- Partials 139 142 +3
Continue to review full report at Codecov.
|
Signed-off-by: Jörn Weißenborn <joern.weissenborn@gmail.com>
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
As a side effect it sets the file paths of saved files in the Result object.
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.
Sorry for the long wait on my review.
In general, I don't like the cluttering of the data classes with the <attr>_file
attributes.
So in a follow-up PR we should refactor this to a more elegant solution.
E.g.:
1.) Loaders overwrite an origin_file
attribute ({"path": <file_path>, "format_name": <format_name>}
) on the objects (Model
, ParameterGroup
, ...) which we can set to a default value.
2.) We use a file_mapping
attribute {"model": {"path": <file_path>, "format_name": <format_name>}, ....}
Since each object has one loader plugin we can make it a property of the object itself.
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…p_path instead of tmpdir
b9217b4
to
533598c
Compare
For some reason when running pre-commit on pre-commit-ci the exclude settings of interrogate are ignored. Compare: https://github.com/glotaran/pyglotaran/runs/3853222703 vs. https://results.pre-commit.ci/run/github/58401715/1633899505.QoeN82EHTouKusNC0fMSCg But since we run it in our github actions workflow it is save to deactivate it for pre-commit-ci.
26fb1a3
to
144b4d1
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.83%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
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.
For me, this is now fine to merge the open issues from the review are tracked in #855
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.
Reviewed ok, taking into account some new minor issues (#855)
This PR changes the way results are saved and enables loading and validating results.
Change summary
Checklist
Closes issues
closes #323
closes #317
closes #316
closes #767