Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2023
1 parent 36b1941 commit e6f4b14
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion rechunker/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 0 additions & 1 deletion rechunker/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

@pytest.fixture
def example_pipeline(tmpdir_factory):

tmp = tmpdir_factory.mktemp("pipeline_data")

@dataclass(frozen=True)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_rechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit e6f4b14

Please sign in to comment.