Repository navigation
fix: the EDS metadata tree is one FormatoHSPY can write, and the sparse store checks its channel order - #186
Merged
Merged
Conversation
…se store checks its channel order The mode is the name of the one group under Acquisition_instrument, as in RosettaSciIO's tree, and names itself only where no instrument field is known; a pixel listing a channel out of order or twice is refused; the parity table says when a Bruker dense slab refuses (#185). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VkKZEUynSt6RczY9oKhrDU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Paul · project thread
Fixes #185
These fixes come from the independent review of #183, made before 0.24.0 ships. The review found no change to any decoded number.
Acquisition_instrumentis no longer written as a value beside its ownSEM/TEMgroup, which FormatoHSPY refused (conflictingMetadataKeys), so every EDS signal could not be saved as.hspy.EDSMetadata(_:)reads the mode either way, so the parity tests' metadata stays the same.EDSSparseSpectrumImage.init: refuses a pixel that lists a channel out of order or twice (.damaged), soread(start:count:)andsumalways see the same counts. The kit's readers already build ascending channels.docs/parity.md: a Bruker dense slab with a count past the dtype from RosettaSciIO'sestimate_map_depthis refused, where upstream'sunbcf_fastwraps. The dtype stays upstream's.New tests in
EDSMetadataTreeTests:Unbuilt in the cloud, so CI is the build.
Generated by Claude Code