-
Notifications
You must be signed in to change notification settings - Fork 40
[feat] hdf5: also store MD_LIGHT_POWER metadata #3321
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
base: master
Are you sure you want to change the base?
[feat] hdf5: also store MD_LIGHT_POWER metadata #3321
Conversation
HDF5 is not commonly used on systems with light, so we never supported this metadata... but now some SPARCs have input light (for PL), so let's add support for this metadata too.
📝 WalkthroughWalkthroughThis pull request adds support for a new metadata field 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)src/odemis/dataio/hdf5.py (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull request overview
This PR adds support for storing and reading MD_LIGHT_POWER metadata in the HDF5 file format. This metadata represents the light power used during acquisition, which is now needed for SPARCs with input light for photoluminescence (PL) measurements.
- Added
MD_LIGHT_POWERmetadata reading and writing in the HDF5 format handler - Updated test cases to validate the new metadata is correctly preserved during save/load cycles
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/odemis/dataio/hdf5.py | Added reading of "LightPower" metadata (line 729) and writing logic for MD_LIGHT_POWER (lines 960-963) |
| src/odemis/dataio/test/hdf5_test.py | Added MD_LIGHT_POWER test data and assertions across multiple test functions to verify proper handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
HDF5 is not commonly used on systems with light, so we never supported
this metadata... but now some SPARCs have input light (for PL), so let's
add support for this metadata too.