mrschweizer / PyThat

This is a community package which helps reading .h5 files created by ThatecOS and converting them to xarray objects and netcdf files. This software is not maintained by and has no affiliations to THATec Innovation GmbH.
MIT License
4 stars 1 forks source link

provide tree_string with override=False #11

Closed timvgl closed 2 years ago

timvgl commented 2 years ago

Hi, I am using tree_string for my analyzing tool. Unfortuantly I have to overwrite the nc file each time if I want to get tree_string which costs - depending on the file size - a lot of time. Is it possible to load tree_string everytime? Thank you

mrschweizer commented 2 years ago

This will be worked on in the near future. In general, much more meta data will be copied from .h5 to .nc files. 1) MeaturementTree.tree_string, ,labbook, ,definition, devices, labbook, logs 2) The name of the row will be included as attribute in the .nc data_vars in order to allow for easier identification

mrschweizer commented 2 years ago

Update: netCDF files do not support the serialization of dict type objects. This makes the whole story a bit more difficult. It might be easier to save this kind of data as seperate pickle or json file.