Skip to content

Commit 263897f

Browse files
style: pre-commit fixes
1 parent 17ddb5c commit 263897f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pyramid_sampler/sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,5 @@ def initialize_test_image(
290290
lev0[0 : halfway[0], 0 : halfway[1], 0 : halfway[2]] = (
291291
lev0[0 : halfway[0], 0 : halfway[1], 0 : halfway[2]] + 0.5 * fac
292292
)
293-
field1.empty(name='0', shape=base_resolution, chunks=chunks, dtype=dtype)
293+
field1.empty(name="0", shape=base_resolution, chunks=chunks, dtype=dtype)
294294
da.to_zarr(lev0, field1["0"])

tests/test_sampler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ def test_initialize_test_image(tmp_path):
1818
initialize_test_image(zarr_store, fieldname, res, chunks, overwrite_field=False)
1919

2020
assert fieldname in zarr_store
21-
assert zarr_store[fieldname]['0'].shape == res
22-
assert zarr_store[fieldname]['0'].chunks == chunks
21+
assert zarr_store[fieldname]["0"].shape == res
22+
assert zarr_store[fieldname]["0"].chunks == chunks
2323
assert Path.exists(tmp_path / "myzarr.zarr" / fieldname)
2424

2525
res = (16, 16, 16)
2626
initialize_test_image(zarr_store, fieldname, res, chunks, overwrite_field=True)
27-
assert zarr_store[fieldname]['0'].shape == res
27+
assert zarr_store[fieldname]["0"].shape == res
2828

2929

3030
@pytest.mark.parametrize("dtype", ["float32", np.float64, "int", np.int32, np.int16])

0 commit comments

Comments
 (0)