Skip to content

Commit 749ac26

Browse files
author
cmdupuis3
committed
squeeze_batch_dim test (attempt 2)
1 parent 0e8f716 commit 749ac26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xbatcher/tests/test_generators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ def test_batch_3d_squeeze_batch_dim(sample_ds_3d, bsize):
167167
xbsize = 20
168168
bg = BatchGenerator(
169169
sample_ds_3d,
170-
input_dims={'y': bsize, 'x': xbsize},
170+
input_dims={'time': 1, 'y': bsize, 'x': xbsize},
171171
squeeze_batch_dim=False,
172172
)
173173
for ds_batch in bg:
174174
assert ds_batch['x'].shape == [1, bsize, xbsize]
175-
175+
176176
bg2 = BatchGenerator(
177177
sample_ds_3d,
178-
input_dims={'y': bsize, 'x': xbsize},
178+
input_dims={'time': 1, 'y': bsize, 'x': xbsize},
179179
squeeze_batch_dim=True,
180180
)
181181
for ds_batch in bg:

0 commit comments

Comments
 (0)