Skip to content

Commit 35cd3fc

Browse files
Fix lint
1 parent fecb444 commit 35cd3fc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

bioimageio/core/build_spec/build_model.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import hashlib
33
import os
44
from pathlib import Path
5-
from typing import Any, Dict, List, Optional, Tuple, Union
5+
from typing import Any, Dict, List, Optional, Union
66
from warnings import warn
77

88
import imageio
@@ -424,22 +424,20 @@ def write_im(path, im, axes, pixel_size=None):
424424
else:
425425
assert set(axes) == {"b", "x", "y", "z", "c"}, f"{axes}"
426426
resolution_axes_ij = "bzcyx"
427-
427+
428428
def addMissingAxes(im_axes):
429429
needed_axes = ["b", "c", "x", "y", "z", "s"]
430430
for ax in needed_axes:
431-
if not ax in im_axes:
431+
if ax not in im_axes:
432432
im_axes += ax
433433
return im_axes
434-
434+
435435
axes_ij = "bzcyxs"
436436
# Expand the image to ImageJ dimensions
437-
im = np.expand_dims(im, axis=tuple(range(len(axes),len(axes_ij))))
438-
437+
im = np.expand_dims(im, axis=tuple(range(len(axes), len(axes_ij))))
439438

440439
axis_permutation = tuple(addMissingAxes(axes).index(ax) for ax in axes_ij)
441440
im = im.transpose(axis_permutation)
442-
443441

444442
if pixel_size is None:
445443
resolution = None

0 commit comments

Comments
 (0)