Skip to content

Commit d62d1f2

Browse files
committed
Create emtpy PixelMaskCollection without argument
1 parent cb7ce2b commit d62d1f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eitprocessing/roi/filter_by_size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def apply(self, mask: PixelMask) -> PixelMask:
8787
"""
8888
binary_array = ~np.isnan(mask.mask)
8989
labeled_array, num_features = ndi.label(binary_array, structure=self.connectivity)
90-
mask_collection = PixelMaskCollection({})
90+
mask_collection = PixelMaskCollection()
9191
for region_label in range(1, num_features + 1):
9292
region = labeled_array == region_label
9393
if np.sum(region) >= self.min_region_size:

0 commit comments

Comments
 (0)