Add global attributes#6
Conversation
|
Looks good, but I think this would make more sense to be under the root node (alongside |
The reason I placed it inside the file info node is because (at least in sdf-xarray) all global attributes came from file header information so it made sense to put it under the file info section but I'm happy to move it if you think it's more appropriate at the top level |
|
Yeah, in agreement with that. Sorry a bit on the tired side and this didn't quite parse through my brain right when I read it earlier. Additionally I think the attributes should be an empty node e.g. |
|
👍 I agree. |
|
One minor thing: I think may attributes should be above the Groups and Data Variables not below? |
|
Done! |


Add the global attributes (from
dataset.attrs) to a sub node titledAttributes (num_attrs)under theFile Informationnode.This is recursive as the attributes might contain sub
dicts. This is the case insdf-xarrayas we add the simulation setup file to the attributes as a dictionary.