From 439f4dc082e6d3c7f9aaad568f5373071d60e8fb Mon Sep 17 00:00:00 2001 From: Anu-Ra-g Date: Mon, 29 Jul 2024 13:54:30 +0530 Subject: [PATCH] added dimension name in error message --- kerchunk/grib2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kerchunk/grib2.py b/kerchunk/grib2.py index 62e3d2db..28d9b4bb 100644 --- a/kerchunk/grib2.py +++ b/kerchunk/grib2.py @@ -723,6 +723,7 @@ def extract_dataset_chunk_index( # Must be able to get a single coordinate value for each chunk to index it. raise ValueError( "Can not extract chunk index for %s with non singleton chunk dimensions" + % ddim_nane ) # Drop the dim where each chunk covers the whole dimension - no indexing needed!