-
Notifications
You must be signed in to change notification settings - Fork 47
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
More flexible OptimizationResultHDF5Writer
#1528
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1528 +/- ##
===========================================
- Coverage 82.82% 82.75% -0.07%
===========================================
Files 163 163
Lines 14004 14018 +14
===========================================
+ Hits 11599 11601 +2
- Misses 2405 2417 +12 ☔ View full report in Codecov by Sentry. |
Pull request was converted to draft
Changes: * `OptimizeResult`, `OptimizerResult`(s) can be written by `OptimizationResultHDF5Writer.write()` (Closes ICB-DCM#1526) * `OptimizerResult`s can be written incrementally by `OptimizationResultHDF5Writer.write_optimizer_result()` (Closes ICB-DCM#1527) * Fixed an `AttributeError` in `pypesto.store.save_to_hdf5.check_overwrite` with `h5py.Group`s
OptimizationResultHDF5Writer.write(OptimizeResult)
OptimizationResultHDF5Writer
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.
Thanks, that indeed makes it more flexible. Should we introduce these changes to profiler and sampler writer as well?
If there is demand. I wouldn't do it just for the sake of it. |
Previously, only writing
Result
was supported.Changes:
OptimizeResult
,OptimizerResult
(s) can be written byOptimizationResultHDF5Writer.write()
(ClosesOptimizationResultHDF5Writer
should acceptOptimizeResult
#1526)OptimizerResult
s can be written incrementally byOptimizationResultHDF5Writer.write_optimizer_result()
(ClosesOptimizationResultHDF5Writer
should allow writing individualOptimzerResults
#1527)AttributeError
inpypesto.store.save_to_hdf5.check_overwrite
withh5py.Group
s