Skip to content

Commit afffd1b

Browse files
committed
Run pre-commit on files
1 parent c0e5594 commit afffd1b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

fractal_tasks_core/pyramids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"""
1515
import logging
1616
import pathlib
17-
import zarr
1817
from typing import Callable
1918
from typing import Mapping
2019
from typing import Optional
@@ -23,6 +22,7 @@
2322

2423
import dask.array as da
2524
import numpy as np
25+
import zarr
2626

2727
logger = logging.getLogger(__name__)
2828

tests/test_unit_pyramid_creation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ def test_build_pyramid(tmp_path):
6868
# Succeed
6969
zarrurl = str(tmp_path / "F.zarr")
7070
da.zeros(shape=(8, 8)).to_zarr(f"{zarrurl}/0")
71-
build_pyramid(zarrurl=zarrurl, coarsening_xy=2, num_levels=3,
72-
open_array_kwargs={"write_empty_chunks": False, "fill_value": 0})
71+
build_pyramid(
72+
zarrurl=zarrurl,
73+
coarsening_xy=2,
74+
num_levels=3,
75+
open_array_kwargs={"write_empty_chunks": False, "fill_value": 0},
76+
)
7377
level_1 = da.from_zarr(f"{zarrurl}/1")
7478
level_2 = da.from_zarr(f"{zarrurl}/2")
7579
assert level_1.shape == (4, 4)

0 commit comments

Comments
 (0)