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

More flexible OptimizationResultHDF5Writer #1528

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 27, 2024

Previously, only writing Result was supported.

Changes:

@dweindl dweindl self-assigned this Nov 27, 2024
@dweindl dweindl enabled auto-merge November 27, 2024 11:40
@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 80.55556% with 7 lines in your changes missing coverage. Please review.

Project coverage is 82.75%. Comparing base (2ed5f8f) to head (7108cf7).

Files with missing lines Patch % Lines
pypesto/store/save_to_hdf5.py 80.55% 7 Missing ⚠️

❗ 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.
📢 Have feedback on the report? Share it here.

@dweindl dweindl marked this pull request as draft November 27, 2024 13:28
auto-merge was automatically disabled November 27, 2024 13:28

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
@dweindl dweindl changed the title Support OptimizationResultHDF5Writer.write(OptimizeResult) More flexible OptimizationResultHDF5Writer Nov 27, 2024
@dweindl dweindl marked this pull request as ready for review November 27, 2024 13:33
@dweindl dweindl requested a review from vwiela as a code owner November 27, 2024 13:33
Copy link
Collaborator

@PaulJonasJost PaulJonasJost left a 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?

@dweindl
Copy link
Member Author

dweindl commented Nov 28, 2024

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.

@dweindl dweindl added this pull request to the merge queue Nov 28, 2024
Merged via the queue into ICB-DCM:develop with commit 861318a Nov 28, 2024
18 checks passed
@dweindl dweindl deleted the fix_1526 branch November 28, 2024 12:00
This was referenced Jan 8, 2025
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