-
Notifications
You must be signed in to change notification settings - Fork 12
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
SONATA Python bindings should expose the schema of the file or datatypes of attributes #141
Comments
By schema, do you mean dtypes? |
Yes |
Seems to make sense to me, although I like your work around. What would the C++ API look like? |
I think there's no one-to-one mapping. IIRC, in C++ you just request the HighFive dataset and HDF5 will convert between what you request to read, and what is on disk. Basically a lazy access to attributes with deferred reading that should let you peak at the datatype. But one could have a C++ schema that's just (note that this should also include data types of |
Not sure what you mean here.
Is the I guess make a PR, and we can nail the details down in that. |
I don't really think we need a C++ counterpart to this, going through the call chain, we convert to whatever the "customer" requests. Whereas in Python, we reflect the datatype on disk. So I would just implement a Python side of this for now. |
Currently, I have to iterate over the attribute names, extract a bogus array with an empty selection to get the schema of a SONATA file. It would be nice if there was some direct access to the column data types or the complete schema.
The text was updated successfully, but these errors were encountered: