I ran into something a bit funny relative to my expectations.
The data type of numpy arrays when read back in is not a subtype of say np.ndarray, the actual dict structure is not a python dict, etc.
>>> print(type(md), type(md["z"]), isinstance(md["z"], np.ndarray))
<class 'asdf.tags.core.AsdfObject'> <class 'asdf.tags.core.ndarray.NDArrayType'> False
I get why this happens, but it breaks the ability of data to "round trip" to and from files and get the same thing back out, interface the ASDF data into other tools, etc.
Is there an option or can one add an option to read the whole tree back into non-ASDF types?
This operation would not allow lazy loading, etc., which is the expected behavior.
I ran into something a bit funny relative to my expectations.
The data type of numpy arrays when read back in is not a subtype of say
np.ndarray, the actual dict structure is not a python dict, etc.I get why this happens, but it breaks the ability of data to "round trip" to and from files and get the same thing back out, interface the ASDF data into other tools, etc.
Is there an option or can one add an option to read the whole tree back into non-ASDF types?
This operation would not allow lazy loading, etc., which is the expected behavior.