From e6f4b145e2080fee24d6ffd6f89601bb90aaca28 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 02:31:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- rechunker/algorithm.py | 1 - rechunker/api.py | 1 - tests/test_pipelines.py | 1 - tests/test_rechunk.py | 2 -- 4 files changed, 5 deletions(-) diff --git a/rechunker/algorithm.py b/rechunker/algorithm.py index 095b902..3512eb8 100644 --- a/rechunker/algorithm.py +++ b/rechunker/algorithm.py @@ -270,7 +270,6 @@ def multistage_rechunking_plan( # increase the number of stages until min_mem is exceeded for stage_count in range(1, MAX_STAGES): - stage_chunks = calculate_stage_chunks(read_chunks, write_chunks, stage_count) pre_chunks = [read_chunks] + stage_chunks post_chunks = stage_chunks + [write_chunks] diff --git a/rechunker/api.py b/rechunker/api.py index 9f97b2a..6d9da1f 100644 --- a/rechunker/api.py +++ b/rechunker/api.py @@ -476,7 +476,6 @@ def _setup_rechunk( return copy_specs, temp_group, target_group elif isinstance(source, (zarr.core.Array, dask.array.Array)): - copy_spec = _setup_array_rechunk( source, target_chunks, diff --git a/tests/test_pipelines.py b/tests/test_pipelines.py index ce4b93c..c0f00d0 100644 --- a/tests/test_pipelines.py +++ b/tests/test_pipelines.py @@ -17,7 +17,6 @@ @pytest.fixture def example_pipeline(tmpdir_factory): - tmp = tmpdir_factory.mktemp("pipeline_data") @dataclass(frozen=True) diff --git a/tests/test_rechunk.py b/tests/test_rechunk.py index f5d8820..5111ee7 100644 --- a/tests/test_rechunk.py +++ b/tests/test_rechunk.py @@ -352,7 +352,6 @@ def test_rechunk_dataset_dimchunks( def test_rechunk_array( tmp_path, shape, source_chunks, dtype, dims, target_chunks, max_mem, executor ): - ### Create source array ### store_source = str(tmp_path / "source.zarr") source_array = zarr.ones( @@ -408,7 +407,6 @@ def test_rechunk_array( def test_rechunk_dask_array( tmp_path, shape, source_chunks, dtype, target_chunks, max_mem ): - ### Create source array ### source_array = dsa.ones(shape, chunks=source_chunks, dtype=dtype)