Skip to content

Commit

Permalink
Merge pull request #7 from darothen/shape_fix
Browse files Browse the repository at this point in the history
Tweak dimension unpacking for 3D+ fields
  • Loading branch information
Daniel Rothenberg committed Jan 22, 2018
2 parents dec4e83 + 5963ae9 commit b0f2fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbpch/core.py
Expand Up @@ -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
Expand Down

0 comments on commit b0f2fcd

Please sign in to comment.