We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da00a6 commit 828318dCopy full SHA for 828318d
xbatcher/tests/test_generators.py
@@ -181,7 +181,10 @@ def test_preload_batch_false(sample_ds_1d):
181
182
183
def test_preload_batch_true(sample_ds_1d):
184
- bg = BatchGenerator(sample_ds_1d, input_dims={'x': 2}, preload_batch=True)
+ sample_ds_1d_dask = sample_ds_1d.chunk({'x': 2})
185
+ bg = BatchGenerator(
186
+ sample_ds_1d_dask, input_dims={'x': 2}, preload_batch=True
187
+ )
188
assert bg.preload_batch is True
189
for ds_batch in bg:
190
assert isinstance(ds_batch, xr.Dataset)
0 commit comments