-
Notifications
You must be signed in to change notification settings - Fork 28
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
File_Writer for DigitalSurf files #280
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
==========================================
+ Coverage 86.33% 87.66% +1.33%
==========================================
Files 83 83
Lines 10672 11150 +478
Branches 2331 2414 +83
==========================================
+ Hits 9214 9775 +561
+ Misses 939 860 -79
+ Partials 519 515 -4 ☔ View full report in Codecov by Sentry. |
This is now ready for review :) |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
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.
This looks good, I didn't review in depth but this looks all sensible.
I made a few comments and maybe it would be good to increase the coverage? There are a couple of if block which are not coverage.
fixed type Co-authored-by: Eric Prestat <eric.prestat@gmail.com>
Thanks for review!
Alright, wait for it I'll push some new tests later today |
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.
A test checking the list of functions in the public API needs to be updated:
rosettasciio/rsciio/tests/test_import.py
Lines 130 to 146 in 916c4b5
if plugin["name"] == "MSA": | |
assert dir(plugin_module) == [ | |
"file_reader", | |
"file_writer", | |
"parse_msa_string", | |
] | |
elif plugin["name"] == "QuantumDetector": | |
assert dir(plugin_module) == [ | |
"file_reader", | |
"load_mib_data", | |
"parse_exposures", | |
"parse_timestamps", | |
] | |
elif plugin["writes"] is False: | |
assert dir(plugin_module) == ["file_reader"] | |
else: | |
assert dir(plugin_module) == ["file_reader", "file_writer"] |
|
Ok. I thought you would not consider changing this. Hadn't realized some other modules where already deviating from the |
Ok finally I think we're there. |
Thank you @Attolight-NTappy, I push some tweaks to please ruff and improve the release note. |
🤩 |
Description of the change
This PR implements save support for digitalsurf file formats:
Progress of the PR
upcoming_changes
folder (seeupcoming_changes/README.rst
),docs/readthedocs.org:rosettasciio
build of this PR (link in github checks)Minimal example of the bug fix or the new feature