Skip to content

Read exact saved text through source backends - #26

Merged
trissim merged 1 commit into
mainfrom
fix/exact-saved-text-read-20261004
Oct 4, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/exact-saved-text-read-20261004

Conversation

@trissim

@trissim trissim commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Closes #25.

Saved CSVs could only be loaded through the structured CSV decoder, forcing consumers to render table text again or bypass their storage backend. Add DataSource.load_text and route it through FileManager. Disk reads exact UTF-8 bytes, Zarr uses its existing disk passthrough, and memory retains already stored text. Structured values refuse the text contract.

This is the production dependency for OpenHCSDev/openhcs#394's consolidation and warm-debug reuse of actual saved writer output. It adds no registry, carrier or caller-side backend dispatch.

Validation: five existing disk/text consumer cases passed, including exact CRLF save/read through disk, Zarr and memory, structured-memory rejection, and unchanged decoded CSV loading. No performance claim is made for this capability itself.

Closes #25. Expose DataSource.load_text through FileManager; disk preserves exact UTF-8 bytes and Zarr retains its existing disk-passthrough owner. Text-valued memory storage derives the default source behavior, while structured values refuse it. Required by OpenHCSDev/openhcs#394 to reuse saved analysis tables instead of rendering them again.
Copilot AI balanced review requested due to automatic review settings October 4, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit 89deeef into main Oct 4, 2026
5 of 11 checks passed
@trissim
trissim deleted the fix/exact-saved-text-read-20261004 branch October 4, 2026 01:52
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.

Expose exact saved text through the existing source backend contract

2 participants