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%
{
"context": "This evaluation assesses how well the engineer uses h5netcdf's error handling and validation features to build a robust netCDF file validator. The focus is on proper usage of h5netcdf.File for opening files, catching specific exception types (CompatibilityError, ValueError, KeyError), validating format constraints, and checking type accessibility within the group hierarchy.",
"type": "weighted_checklist",
"checklist": [
{
"name": "File Opening",
"description": "Uses h5netcdf.File (or h5netcdf.legacyapi.Dataset) to open netCDF files with proper mode ('r' for reading) and context manager (with statement) for resource cleanup",
"max_score": 10
},
{
"name": "Format Detection",
"description": "Accesses the data_model property on the File object to detect the actual netCDF format (NETCDF4 vs NETCDF4_CLASSIC)",
"max_score": 10
},
{
"name": "Scalar Variable Detection",
"description": "Iterates through variables using the .variables property and checks for scalar variables by examining the .dimensions or .shape property to identify variables with empty dimension lists",
"max_score": 15
},
{
"name": "CompatibilityError Handling",
"description": "Catches h5netcdf.CompatibilityError exceptions that may be raised when opening non-compliant NETCDF4_CLASSIC files or during format validation",
"max_score": 15
},
{
"name": "Group Navigation",
"description": "Uses the .groups property and/or .parent property to navigate the group hierarchy when validating enum type accessibility across parent-child relationships",
"max_score": 10
},
{
"name": "Enum Type Access",
"description": "Accesses enum types using the .enumtypes property on Group objects and validates type accessibility by checking parent groups in the hierarchy",
"max_score": 15
},
{
"name": "KeyError Handling",
"description": "Catches KeyError exceptions when attempting to access non-existent variables (via file_obj.variables[name]) or groups (via file_obj.groups[name]) instead of letting them propagate",
"max_score": 15
},
{
"name": "ValueError/TypeError Handling",
"description": "Catches ValueError or TypeError exceptions that may arise from invalid parameters (e.g., invalid dimension specifications, incompatible compression settings)",
"max_score": 10
}
]
}