From f8e8ce3658f06d357cfbc2f3472292993a23859c Mon Sep 17 00:00:00 2001 From: annierose3 <112646956+annierose3@users.noreply.github.com> Date: Wed, 17 May 2023 16:30:59 -0400 Subject: [PATCH] Update satdet.py (#177) A newer version of scikit-image has deprecated in_place in favor of out in the skimage.morphology.remove_small_objects() function. --- acstools/satdet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acstools/satdet.py b/acstools/satdet.py index 95d59567..2d72088d 100644 --- a/acstools/satdet.py +++ b/acstools/satdet.py @@ -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