Skip to content

Commit 8b7f761

Browse files
committed
merge dev into main
2 parents b858818 + 0e3728e commit 8b7f761

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ pip install "patchworks[all]" # Everything, incl. the napari viewer
5353
> `[imaris]` adds native `.ims` support (HDF5, no JVM). Physical pixel
5454
> calibration is read from the input and written into the OME-ZARR.
5555
56+
<!-- -->
57+
5658
> **`cupy` is never installed automatically**, unlike Cellpose's GPU support
5759
> (which comes for free via PyTorch's self-contained CUDA wheels). Any
5860
> `use_gpu=True`/`dilate_gpu: true` option (the `dog` plugin, `dilate_labels`)

tests/test_ome_zarr.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ def test_tiff_sequence_conversion(tmp_path):
104104
result = np.asarray(load_ome_zarr(out, channel=None))
105105
assert result.shape == (n_z, n_c, size, size)
106106
# each plane's constant value encodes its (z, c) position.
107-
assert (result[:, :, 0, 0] == [[z * 10 + c for c in range(n_c)] for z in range(n_z)]).all()
107+
assert (
108+
result[:, :, 0, 0]
109+
== [[z * 10 + c for c in range(n_c)] for z in range(n_z)]
110+
).all()
108111
assert _level_scale(out, 0) == pytest.approx([1.0, 1.0, 0.5, 0.5])
109112

110113

workflow/scripts/_pw.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ def build_fn(cfg):
152152
if dilate:
153153
from patchworks import dilate_labels
154154

155-
fn = dilate_labels(fn, iterations=dilate, use_gpu=cfg.get("dilate_gpu", False))
155+
fn = dilate_labels(
156+
fn, iterations=dilate, use_gpu=cfg.get("dilate_gpu", False)
157+
)
156158

157159
return fn
158160

0 commit comments

Comments
 (0)