@@ -48,10 +48,10 @@ def test_single_om_to_zarr():
4848 print ("z.chunks" , z .chunks )
4949
5050 # Verify basic metadata matches original file
51- reader = omfiles .OmFilePyReader (test_file )
52- assert list ( z .shape ) == reader .shape , f"Shape mismatch: { z .shape } vs { reader .shape } "
51+ reader = omfiles .OmFileReader (test_file )
52+ assert z .shape == reader .shape , f"Shape mismatch: { z .shape } vs { reader .shape } "
5353 assert str (z .dtype ) == str (reader .dtype ), f"Dtype mismatch: { z .dtype } vs { reader .dtype } "
54- assert list ( z .chunks ) == reader .chunk_dimensions , f"Chunks mismatch: { z .chunks } vs { reader .chunk_dimensions } "
54+ assert z .chunks == reader .chunks , f"Chunks mismatch: { z .chunks } vs { reader .chunks } "
5555
5656 # TODO: Using the following chunk_index leads to a double free / corruption error!
5757 # Even with a concurrency of 1: `zarr.config.config["async"]["concurrency"] = 1`
@@ -127,8 +127,8 @@ def test_multizarr_to_zarr():
127127 z = group ["data" ]
128128
129129 # Open both original files for comparison
130- reader1 = omfiles .OmFilePyReader (file1 )
131- reader2 = omfiles .OmFilePyReader (file2 )
130+ reader1 = omfiles .OmFileReader (file1 )
131+ reader2 = omfiles .OmFileReader (file2 )
132132
133133 # Check that the combined shape is the sum along the time axis
134134 expected_shape = list (reader1 .shape )
@@ -165,7 +165,7 @@ def test_multizarr_to_zarr():
165165# ds = xr.open_zarr(store, consolidated=False)
166166
167167# # Basic validation
168- # reader = omfiles.OmFilePyReader (test_file)
168+ # reader = omfiles.OmFileReader (test_file)
169169# assert ds.dims == dict(zip(["time", "y", "x"], reader.shape))
170170
171171# # Get some data to verify decompression pipeline
0 commit comments