Skip to content

Preserve mock stream metadata through HDF5 - #680

Merged
adrn merged 2 commits into
adrn:mainfrom
rpinho:fix-mockstream-hdf5-metadata
Nov 26, 2026
Merged

adrn merged 2 commits into
adrn:mainfrom
rpinho:fix-mockstream-hdf5-metadata

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes

Saving a generated mock stream to HDF5 raises when it contains release times. Generate a stream with MockStreamGenerator.run and call to_hdf5 with an open file. The patch writes release times when present and decodes the stored tail labels when reading. The tests round-trip a stream and read a file with byte labels.

Checklist

  • Did you add tests?
  • Did you add documentation for your changes?
  • Did you reference any relevant issues?
  • Did you add a changelog entry? (see CHANGES.rst)
  • Are the CI tests passing?
  • Is the milestone set?

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

rpinho and others added 2 commits November 25, 2026 19:52
Build the stream directly instead of running the generator, drop the
redundant legacy-labels test, and use the HAS_H5PY skip like other tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@adrn
adrn force-pushed the fix-mockstream-hdf5-metadata branch from dfd781f to 2995c5a Compare November 26, 2026 00:53
@adrn adrn added this to the v1.13 milestone Nov 26, 2026
@adrn
adrn merged commit 7cf0247 into adrn:main Nov 26, 2026
28 checks passed
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.

2 participants