From 5963ae9640c15db5717daccab8157475a827a1c1 Mon Sep 17 00:00:00 2001 From: Daniel Rothenberg Date: Sun, 21 Jan 2018 21:14:25 -0500 Subject: [PATCH] Tweak dimension unpacking for 3D+ fields Thanks to feedback from Jenny Fisher (University of Wollongong) --- xbpch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbpch/core.py b/xbpch/core.py index 3c472b0..972daaa 100644 --- a/xbpch/core.py +++ b/xbpch/core.py @@ -353,7 +353,7 @@ def __init__(self, filename, fields=[], categories=[], fix_cf=False, if self.is_nested: ix, iy, _ = ref_attrs['origin'] - nx, ny, _ = ref_attrs['original_shape'] + nx, ny, *_ = ref_attrs['original_shape'] # Correct i{x,y} for IDL->Python indexing (1-indexed -> 0-indexed) ix -= 1 iy -= 1