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 Jul 15, 2023
1 parent fb2444b commit 2b6752e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/spatialdata_io/readers/seqfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,16 @@ def seqfish(
n = len(count_matrices)
scale_factors = [2, 2, 2, 2]
images = {
f"label_{x+1}": Image2DModel.parse(imread(path / dapi_file[x - 1], **imread_kwargs), dims=("c", "y", "x"), scale_factors=scale_factors)
f"label_{x+1}": Image2DModel.parse(
imread(path / dapi_file[x - 1], **imread_kwargs), dims=("c", "y", "x"), scale_factors=scale_factors
)
for x in range(1, n + 1)
}
labels = {
f"image_{x+1}": Labels2DModel.parse(
imread(path / cell_mask_file[x - 1], **imread_kwargs).squeeze(), dims=("y", "x"), scale_factors=scale_factors
imread(path / cell_mask_file[x - 1], **imread_kwargs).squeeze(),
dims=("y", "x"),
scale_factors=scale_factors,
)
for x in range(1, n + 1)
}
Expand Down

0 comments on commit 2b6752e

Please sign in to comment.