Closed kripnerl closed 1 year ago
I looked at this some. I did not make any progress.
@kripnerl to extend the data schema use the extra_structures
feature in OMAS
https://gafusion.github.io/omas/auto_examples/extra_structures.html#sphx-glr-auto-examples-extra-structures-py
Would this solve your issue?
@orso82 I will check this. It could solve our issue.
Stale issue message
Example pull request: #217
https://github.com/gafusion/omas/actions/runs/3413780388/jobs/5680901424
It seems that consistency_check ensures the right type of conversions. In my case, it was failing when reading fields of type
str
which are stored in h5 as bytes which resulted inThe above error is raised on
Partial fix would be, if the
consitency_check
method is divided into two where one is controlling IMAS typing and the other is controlling whether all fields are following IMAS structure. This would be generally very useful for our use case, where we want to have some kind of extended IMAS schema for data description. Some data (for example mass of the pf_active coil or time-dependent conductivity) are not in the structure and could benefit from having a possibility to extend the schema while using benefits of OMAS.