Skip to content

Commit 5253056

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fdaf4d6 commit 5253056

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bioimageio/core/build_spec/build_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ def get_size(fname, axes):
347347
{"name": in_path, "size": get_size(in_path, axes), "pixel_size": pix_size}
348348
for in_path, axes, pix_size in zip(test_inputs, input_axes, pixel_sizes_)
349349
],
350-
"outputs": [{"name": out_path, "type": "image", "size": get_size(out_path, axes)} for out_path, axes in zip(test_outputs, output_axes)],
350+
"outputs": [
351+
{"name": out_path, "type": "image", "size": get_size(out_path, axes)}
352+
for out_path, axes in zip(test_outputs, output_axes)
353+
],
351354
"memory_peak": None,
352355
"runtime": None,
353356
}
@@ -364,7 +367,6 @@ def get_size(fname, axes):
364367

365368

366369
def _write_sample_data(input_paths, output_paths, input_axes, output_axes, pixel_sizes, export_folder: Path):
367-
368370
def write_im(path, im, axes, pixel_size=None):
369371
assert tifffile is not None, "need tifffile for writing deepimagej config"
370372
assert len(axes) == im.ndim

0 commit comments

Comments
 (0)