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 Oct 30, 2023
1 parent a36bcd4 commit b0caea4
Show file tree
Hide file tree
Showing 4 changed files with 1,140 additions and 1,148 deletions.
7 changes: 0 additions & 7 deletions benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def source(request):

@pytest.fixture(params=("overhead", "zarr", "tiff", "hdf5"))
def file_type(request, source):

if request.param == "overhead":

filename, fs = source("1-byte")

class Overhead(Fixture):
Expand All @@ -149,7 +147,6 @@ def run(self, chunk_index):
return Overhead(source)

elif request.param == "zarr":

filename, fs = source(f"{BASE}.ome.zarr")

class Zarr(Fixture):
Expand All @@ -167,7 +164,6 @@ def run(self, chunk_index):
return Zarr(source)

elif request.param == "tiff":

filename, fs = source(f"{BASE}.ome.tiff")

class TIFF(Fixture):
Expand All @@ -189,7 +185,6 @@ def run(self, chunk_index):
return TIFF(source)

elif request.param == "hdf5":

filename, fs = source(f"{BASE}.ims")

class HDF5(Fixture):
Expand All @@ -208,12 +203,10 @@ def run(self, chunk_index):
return HDF5(source)

else:

raise NotImplementedError(request.param)


def test_benchmark(file_type, chunk_choice, record_property):

chunk_index, chunk_meta = chunk_choice
chunk_distance, chunk_record = chunk_meta

Expand Down
Loading

0 comments on commit b0caea4

Please sign in to comment.