If the underlying h5 data in a rex resource includes a group and child dataset e.g. '/meta/latitude' self.datasets will end up including '/meta/latitude' while accessing this dataset through self.res.h5 requires self.res.h5['meta']['latitude'] not self.res.h5['/meta/latitude']. This will thus break self.attrs, self.shapes, and self.dtypes.
If the underlying h5 data in a rex resource includes a group and child dataset e.g. '/meta/latitude'
self.datasets
will end up including '/meta/latitude' while accessing this dataset throughself.res.h5
requiresself.res.h5['meta']['latitude']
notself.res.h5['/meta/latitude']
. This will thus breakself.attrs
,self.shapes
, andself.dtypes
.The following hotfix: https://github.com/NREL/rex/blob/264c225fbf5574815e4d3120c777382dad096712/rex/resource.py#L929 should be reverted and instead the logic in https://github.com/NREL/rex/blob/264c225fbf5574815e4d3120c777382dad096712/rex/resource.py#L711 should be modified.