diff --git a/.gitignore b/.gitignore index 68bc17f9..0b0cc64f 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +virtualizarr/_version.py diff --git a/virtualizarr/tests/test_kerchunk.py b/virtualizarr/tests/test_kerchunk.py index 21dc54c0..6908ba87 100644 --- a/virtualizarr/tests/test_kerchunk.py +++ b/virtualizarr/tests/test_kerchunk.py @@ -7,20 +7,25 @@ from virtualizarr.manifests import ChunkEntry, ChunkManifest, ManifestArray from virtualizarr.xarray import dataset_from_kerchunk_refs - -def test_dataset_from_kerchunk_refs(): - ds_refs = { +def gen_ds_refs( + zgroup: str = '{"zarr_format":2}', + zarray: str = '{"chunks":[2,3],"compressor":null,"dtype":" str: return f"Codec(compressor={self.compressor}, filters={self.filters})" @@ -31,7 +31,7 @@ class ZArray(BaseModel): compressor: Optional[str] = None dtype: np.dtype fill_value: Optional[float] = None # float or int? - filters: Optional[str] = None + filters: Optional[List[Dict]] = None order: Union[Literal["C"], Literal["F"]] shape: Tuple[int, ...] zarr_format: Union[Literal[2], Literal[3]] = 2