What happens at the moment is that the attributes are returned and then the file is closed. This then means the attributes aren't accessible: if I try to read the attributes, they are returned as type: <Attributes of closed HDF5 object>, and then if I try to print the keys I get an error:
What happens at the moment is that the attributes are returned and then the file is closed. This then means the attributes aren't accessible: if I try to read the attributes, they are returned as type:
<Attributes of closed HDF5 object>
, and then if I try to print the keys I get an error:Changing to return the attributes as a dict resolves this issue and allows me to access the attributes items