Skip to content

Commit 0916f7d

Browse files
committed
remove legacy test for bug in v2
1 parent f1cb688 commit 0916f7d

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/unit/v1/test_dataset_serializer.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import numpy as np
66
import pytest
7-
from dask import array as dask_array
87
from xarray import DataArray as xr_DataArray
98
from zarr import zeros as zarr_zeros
109

@@ -323,29 +322,6 @@ def test_seismic_poststack_3d_acceptance_to_xarray_dataset(tmp_path: Path) -> No
323322
xr_ds.to_zarr(store=file_path, mode="w", compute=False)
324323

325324

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-
349325
def test_to_zarr_from_zarr_zeros_1(tmp_path: Path) -> None:
350326
"""Test writing XArray dataset with data as Zarr zero array to Zarr.
351327

0 commit comments

Comments
 (0)