Skip to content

Commit 28768d9

Browse files
committed
Fix definition of excluded peaks in WatershedLungspace
1 parent 37f612d commit 28768d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eitprocessing/roi/watershed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def apply( # noqa: PLR0915
168168

169169
included_marker_indices = np.isin(peaks_loc_int, markers_inside_tiv_mask)
170170
included_peaks = np.argwhere(included_marker_indices)
171-
excluded_peaks = np.argwhere(~included_marker_indices)
171+
excluded_peaks = np.argwhere(peaks_loc_bool & ~included_marker_indices)
172172

173173
included_watershed_regions = np.where(included_region, watershed_regions, np.nan)
174174

0 commit comments

Comments
 (0)