From 47a805aa7c8e7704bbe57c4d85acf90222c45253 Mon Sep 17 00:00:00 2001 From: guangzhi Date: Fri, 30 Sep 2022 15:44:18 +0800 Subject: [PATCH] fix tuple() error in paddedClosing --- ipart/AR_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipart/AR_detector.py b/ipart/AR_detector.py index cf112ab..9ecaf16 100644 --- a/ipart/AR_detector.py +++ b/ipart/AR_detector.py @@ -1618,7 +1618,7 @@ def paddedClosing(mask, ele, pad, has_cv): else: padmask=morphology.closing(padmask, selem=ele) # trim - padmask=padmask[tuple(slice(pad,-pad), slice(pad,-pad))] + padmask=padmask[tuple([slice(pad,-pad), slice(pad,-pad)])] return padmask if thres_low is None: