Skip to content

Commit

Permalink
Fix HDF5 type usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkinsspatial committed Jan 31, 2025
1 parent fceb871 commit 4002179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtualizarr/readers/hdf/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,14 @@ def _get_group_attrs(
return attrs

@staticmethod
def _find_non_coord_dimension_vars(group: h5py.Group) -> List[str]:
def _find_non_coord_dimension_vars(group: H5Group) -> List[str]:
dimension_names = []
non_coordinate_dimesion_variables = []
for name, obj in group.items():
if "_Netcdf4Dimid" in obj.attrs:
dimension_names.append(name)
for name, obj in group.items():
if type(obj) is h5py.Dataset:
if type(obj) is H5Dataset:
if obj.id.get_storage_size() == 0 and name in dimension_names:
non_coordinate_dimesion_variables.append(name)

Expand Down

0 comments on commit 4002179

Please sign in to comment.