-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read/write nrrd from/to memory #108
Comments
Hello, The The If these functions are not able to accept any generic The |
Reading actually works by passing in an instance of But what about writing an nrrd record to memoy? |
## Changes - `write` now supports as a parameter either a filename or a `io.BytesIO` object. - refactor write method into: - `_write_default_header_entries` to write the default header entries generated by this package - `_handle_header_fields` to determine the headers based on the specified headers, data and index order - `_write_header` that used the logic from `_write_default_header_entries` and `_handle_header_fields` to write the headers - `write` used the methods above to encapsulate and reuse better the code - added new tests to check the functionality. Coverage still 100% after these changes
Hi, |
I can’t give a timeline, but we’re waiting to add some other improvements to the library and then a v1.0.0 release is happening (with breaking changes). |
The library seems to be missing an interface to simply parse a nrrd-record from another source then an actual file on disk.
Would e.g. an interface based on a provided instance of _IOBase make sense for you?
The text was updated successfully, but these errors were encountered: