|
4 | 4 |
|
5 | 5 | import numpy as np |
6 | 6 | import pytest |
7 | | -from dask import array as dask_array |
8 | 7 | from xarray import DataArray as xr_DataArray |
9 | 8 | from zarr import zeros as zarr_zeros |
10 | 9 |
|
@@ -323,29 +322,6 @@ def test_seismic_poststack_3d_acceptance_to_xarray_dataset(tmp_path: Path) -> No |
323 | 322 | xr_ds.to_zarr(store=file_path, mode="w", compute=False) |
324 | 323 |
|
325 | 324 |
|
326 | | -@pytest.mark.skip(reason="Bug reproducer for the issue 582") |
327 | | -def test_buf_reproducer_dask_to_zarr(tmp_path: Path) -> None: |
328 | | - """Bug reproducer for the issue https://github.com/TGSAI/mdio-python/issues/582.""" |
329 | | - # TODO(Dmitriy Repin): Remove this test after the bug is fixed |
330 | | - # https://github.com/TGSAI/mdio-python/issues/582 |
331 | | - |
332 | | - # Create a data type and the fill value |
333 | | - dtype = np.dtype([("inline", "int32"), ("cdp_x", "float64")]) |
334 | | - dtype_fill_value = np.zeros((), dtype=dtype) |
335 | | - |
336 | | - my_attr_encoding = {"fill_value": dtype_fill_value} |
337 | | - |
338 | | - # Create a dask array using the data type |
339 | | - # Do not specify encoding as the array attribute |
340 | | - data = dask_array.zeros((36,), dtype=dtype, chunks=(36,)) |
341 | | - aa = xr_DataArray(name="myattr", data=data) |
342 | | - |
343 | | - # Specify encoding per array |
344 | | - encoding = {"myattr": my_attr_encoding} |
345 | | - file_path = output_path(tmp_path, "to_zarr/zarr_dask", debugging=False) |
346 | | - aa.to_zarr(file_path, mode="w", encoding=encoding, compute=False) |
347 | | - |
348 | | - |
349 | 325 | def test_to_zarr_from_zarr_zeros_1(tmp_path: Path) -> None: |
350 | 326 | """Test writing XArray dataset with data as Zarr zero array to Zarr. |
351 | 327 |
|
|
0 commit comments