-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Feature]: TermSetWrapper with DataIO #954
Comments
An alternative would be to swap the two, that is have
In principal, I think either way is fine. With Lines 995 to 998 in ddc842b
|
I agree either way in practice is fine, but I think implicitly it makes sense that the TermSetWrapper comes first and wraps around the data to show its validating the data and not the IO Wrapper. Though that's just a mental preference I have. |
Similar to supporting iterative write with the wrapper, this is a special case that we will push back on till requested by the community. |
Did you test with TermSetWrapper(item=H5DataIO(data=data), compression=True)) I think this should likely work as is and may just need a couple of unit tests. |
What would you like to see added to HDMF?
The
TermSetWrapper
class is meant to be used with HDF5 datasets and attributes. These datasets can also be used withDataIO
. If a user wants to use both, we need to provide support for that functionality. The workflow would look something like-->H5DataIO(data=TermSetWrapper(item=data), compression=True)
This way the data is validated before going into DataIO. Once in DataIO, the wrapper would need (most likely) to be removed to not interfere with IO operations.
Is your feature request related to a problem?
No response
What solution would you like?
Refer Above.
Do you have any interest in helping implement the feature?
Yes.
Code of Conduct
The text was updated successfully, but these errors were encountered: