Skip to content

Feature/compressed io#684

Draft
kaiser-dan wants to merge 2 commits intoxgi-org:devfrom
kaiser-dan:feature/compressed-io
Draft

Feature/compressed io#684
kaiser-dan wants to merge 2 commits intoxgi-org:devfrom
kaiser-dan:feature/compressed-io

Conversation

@kaiser-dan
Copy link
Collaborator

@kaiser-dan kaiser-dan commented Feb 25, 2026

Draft PR to add support for compressed data I/O.

Relevant issues

Closes #681 .

Description

Adds support for reading and writing supported data formats with .gz, .bz2, .xz, and .zst compressions.

Checklist

  • Add xopen dependency and ensure compatibility with all other dependencies.
  • Replace read functions' open statements with xopen.xopen
  • Test reading functionality is preserved for uncompressed files
  • Test reading functionality now accepts compressed files
  • Replace write functions' open statements with xopen.xopen
  • Propagate added kwargs from interface to compression kwargs
  • Test writing functionality is preserved for uncompressed files
  • Test writing functionality now accepts compressed files

Notes

The custom JSON format the predated the HIF standard is marked as deprecated and I was not planning on updating its functionality with the rest here; this is despite the deprecation currently implemented as a warning and not an error.

@kaiser-dan kaiser-dan self-assigned this Feb 25, 2026
@kaiser-dan kaiser-dan added the improve Make an existing feature better label Feb 25, 2026
@kaiser-dan kaiser-dan changed the base branch from main to dev February 26, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improve Make an existing feature better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for zipped files

1 participant