tessl install tessl/pypi-h5netcdf@1.6.0netCDF4 file access via h5py with hierarchical and legacy APIs for scientific computing
Agent Success
Agent success rate when using this tile
69%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.83x
Baseline
Agent success rate without this tile
83%
A utility that reads HDF5 files that lack proper NetCDF4 dimension information and reports the automatically generated dimension names.
@generates
def create_hdf5_without_scales(filepath: str, dataset_name: str, shape: tuple) -> None:
"""
Creates an HDF5 file with a dataset that lacks NetCDF4 dimension scales.
Args:
filepath: Path where the file should be created
dataset_name: Name for the dataset
shape: Shape tuple for the dataset (e.g., (5, 10))
"""
pass
def get_dimension_names(filepath: str, dataset_name: str, phony_mode: str = 'sort') -> list:
"""
Opens an HDF5 file and retrieves the dimension names for a dataset.
Args:
filepath: Path to the HDF5 file
dataset_name: Name of the dataset to inspect
phony_mode: How to handle missing dimensions ('sort' or 'access')
Returns:
List of dimension name strings for the dataset
"""
passProvides netCDF4 file-format access via h5py with support for reading HDF5 files that lack proper dimension information.
Provides low-level HDF5 file access for creating test files without dimension scales.
Provides array support for dataset creation and manipulation.