Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions fil_finder/filfinderPPP.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def create_mask(self, adapt_thresh=9, glob_thresh=0.0,
recomputing the mask.

Attributes
----------
-------
mask : numpy.ndarray
The mask of the filaments.

Expand Down Expand Up @@ -155,8 +155,9 @@ def create_mask(self, adapt_thresh=9, glob_thresh=0.0,
close = mo.closing(dilate)

# Don't allow small holes: these lead to "shell"-shaped skeleton features
mo.remove_small_objects(close, min_size=min_object_size, connectivity=1, in_place=True)
mo.remove_small_holes(close, area_threshold=max_hole_size, connectivity=1, in_place=True)
close = mo.remove_small_objects(close, min_size=min_object_size, connectivity=1)
mo.remove_small_holes(close, area_threshold=max_hole_size, connectivity=1)


self.mask = close

Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ install_requires =
networkx
scipy
matplotlib
scikit-image
scikit-image>=0.20.0
h5py
skan
skan>=0.11.0
numba
pandas

Expand All @@ -47,7 +47,7 @@ testpaths = "fil_finder" "docs"
astropy_header = true
doctest_plus = enabled
text_file_format = rst
addopts = -p no:warnings
addopts = -p no:warnings

[coverage:run]
omit =
Expand Down
Loading