Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Add configurable compression #68

Closed
wants to merge 1 commit into from
Closed

Conversation

clbarnes
Copy link
Collaborator

The pyo3 create_dataset function now optionally takes a string which is the JSON-serialized compression config (defaulting to Gzip -1). Keys can be "snake_case" instead of "camelCase", because serde.

This is a MVP for getting the information from python to rust, while still keeping all the flexibility that N5 has and may use in future (currently all of specified compression options have a single integer parameter). I personally would expect users to err on the side of using the (eventual) h5py-like interface, in which case smarter things could be done with compression parameters as it's in python, where create_dataset is not.

@clbarnes
Copy link
Collaborator Author

Merged in #65

@clbarnes clbarnes closed this Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant