Skip to content

Commit 5c55c27

Browse files
committed
Support squashing files with Z guards
1 parent f4d2e8d commit 5c55c27

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/boutdata/data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ def __init__(
10441044
info=False,
10451045
xguards=True,
10461046
yguards=False,
1047+
zguards=False,
10471048
tind=None,
10481049
xind=None,
10491050
yind=None,
@@ -1063,6 +1064,7 @@ def __init__(
10631064
self._info = info
10641065
self._xguards = xguards
10651066
self._yguards = yguards
1067+
self._zguards = zguards
10661068
self._kwargs = kwargs
10671069
self._parallel = parallel
10681070
if suffix is None:
@@ -1111,7 +1113,7 @@ def __init__(
11111113
f,
11121114
xguards=self._xguards,
11131115
yguards=self._yguards,
1114-
zguards=False,
1116+
zguards=self._zguards,
11151117
tind=tind,
11161118
xind=xind,
11171119
yind=yind,
@@ -1523,6 +1525,7 @@ def _collect(self, varname):
15231525
info=self._info,
15241526
xguards=self._xguards,
15251527
yguards=self._yguards,
1528+
zguards=self._zguards,
15261529
tind=self.tind,
15271530
xind=self.xind,
15281531
yind=self.yind,

src/boutdata/squashoutput.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def squashoutput(
2323
zind=None,
2424
xguards=True,
2525
yguards="include_upper",
26+
zguards=True,
2627
drop_variables=None,
2728
singleprecision=False,
2829
compress=False,
@@ -156,6 +157,7 @@ def squashoutput(
156157
info=False,
157158
xguards=xguards,
158159
yguards=yguards,
160+
zguards=zguards,
159161
tind=tind,
160162
xind=xind,
161163
yind=yind,

0 commit comments

Comments
 (0)