From 501b0b927e8d902d00f27c5e6b487169408114d0 Mon Sep 17 00:00:00 2001 From: Thomas Nicholas Date: Mon, 26 Jun 2023 11:00:03 -0400 Subject: [PATCH] print irregular chunking pattern when error raised --- cubed/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubed/utils.py b/cubed/utils.py index 08fbb4dd..e826aa76 100644 --- a/cubed/utils.py +++ b/cubed/utils.py @@ -101,7 +101,7 @@ def to_chunksize(chunkset): """ if not _check_regular_chunks(chunkset): - raise ValueError("Array must have regular chunks") + raise ValueError(f"Array must have regular chunks, but found chunks={chunkset}") return tuple(c[0] for c in chunkset)