Skip to content

Commit

Permalink
Update satdet.py (#177)
Browse files Browse the repository at this point in the history
A newer version of scikit-image has deprecated in_place in favor of out in the skimage.morphology.remove_small_objects() function.
  • Loading branch information
annierose3 authored May 17, 2023
1 parent 70f0e2f commit f8e8ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acstools/satdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _detsat_one(filename, ext, sigma=2.0, low_thresh=0.1, h_thresh=0.5,

# clean up the small objects, will make less noise
morph.remove_small_objects(edge, min_size=small_edge, connectivity=8,
in_place=True)
out=edge)

# create an array of angles from 0 to 180, exactly 0 will get bad columns
# but it is unlikely that a satellite will be exactly at 0 degrees, so
Expand Down

0 comments on commit f8e8ce3

Please sign in to comment.