Skip to content

Commit 87b7eda

Browse files
Fix doc building
1 parent 2ba6ebf commit 87b7eda

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build_docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
cache-environment: true
3232
post-cleanup: 'all'
3333

34+
- name: Install napari
35+
shell: bash -l {0}
36+
run: pip install napari
37+
3438
- name: Install package
3539
shell: bash -l {0}
3640
run: pip install -e .

flamingo_tools/segmentation/nucleus_segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from tqdm import tqdm
1212

1313
from ..file_utils import read_image_data
14-
from ..measurements import _get_bounding_box
14+
from ..measurements import _get_bounding_box_and_center
1515
from .postprocessing import compute_table_on_the_fly
1616

1717

@@ -23,7 +23,7 @@ def _naive_nucleus_segmentation_impl(image, segmentation, table, output, n_threa
2323
table = compute_table_on_the_fly(segmentation, resolution=resolution)
2424

2525
def segment_nucleus(seg_id):
26-
bb = _get_bounding_box(table, seg_id, resolution, image.shape)
26+
bb = _get_bounding_box_and_center(table, seg_id, resolution, image.shape, dilation=None)
2727
image_local, seg_local = image[bb], segmentation[bb]
2828
mask = seg_local == seg_id
2929

0 commit comments

Comments
 (0)