|
72 | 72 | has_scipy,
|
73 | 73 | has_zarr,
|
74 | 74 | has_zarr_v3,
|
| 75 | + has_zarr_v3_dtypes, |
75 | 76 | mock,
|
76 | 77 | network,
|
77 | 78 | requires_cftime,
|
@@ -369,14 +370,11 @@ def create_store(self):
|
369 | 370 | def roundtrip(
|
370 | 371 | self, data, save_kwargs=None, open_kwargs=None, allow_cleanup_failure=False
|
371 | 372 | ):
|
372 |
| - print("INT ROUNDTRIP") |
373 | 373 | if save_kwargs is None:
|
374 | 374 | save_kwargs = {}
|
375 | 375 | if open_kwargs is None:
|
376 | 376 | open_kwargs = {}
|
377 | 377 | with create_tmp_file(allow_cleanup_failure=allow_cleanup_failure) as path:
|
378 |
| - print(path) |
379 |
| - print(save_kwargs) |
380 | 378 | self.save(data, path, **save_kwargs)
|
381 | 379 | with self.open(path, **open_kwargs) as ds:
|
382 | 380 | yield ds
|
@@ -851,16 +849,8 @@ def test_outer_indexing_reversed(self) -> None:
|
851 | 849 | {"z": (("t", "p", "y", "x"), np.ones((1, 1, 31, 40)))},
|
852 | 850 | )
|
853 | 851 |
|
854 |
| - print("jsda;lkjasdlfk") |
855 |
| - print(f"Test class: {self.__class__.__name__}") |
856 |
| - print(f"Dataset: {ds}") |
857 | 852 | with self.roundtrip(ds) as on_disk:
|
858 |
| - print(f"on_disk type: {type(on_disk)}") |
859 |
| - print(f"on_disk.z type: {type(on_disk.z)}") |
860 | 853 | subset = on_disk.isel(t=[0], p=0).z[:, ::10, ::10][:, ::-1, :]
|
861 |
| - print(f"subset sizes: {subset.sizes}") |
862 |
| - loaded = subset.load() |
863 |
| - print(f"loaded sizes: {loaded.sizes}") |
864 | 854 | assert subset.sizes == subset.load().sizes
|
865 | 855 |
|
866 | 856 | def test_isel_dataarray(self) -> None:
|
@@ -2918,6 +2908,9 @@ def test_append_with_existing_encoding_raises(self) -> None:
|
2918 | 2908 |
|
2919 | 2909 | @pytest.mark.parametrize("dtype", ["U", "S"])
|
2920 | 2910 | def test_append_string_length_mismatch_raises(self, dtype) -> None:
|
| 2911 | + if has_zarr_v3() and not has_zarr_v3_dtypes: |
| 2912 | + pytest.skip("This works on pre dtype updated zarr python") |
| 2913 | + |
2921 | 2914 | ds, ds_to_append = create_append_string_length_mismatch_test_data(dtype)
|
2922 | 2915 | with self.create_zarr_target() as store_target:
|
2923 | 2916 | ds.to_zarr(store_target, mode="w", **self.version_kwargs)
|
|
0 commit comments