From f9cbc0ad695d60a81f77861ae7f9883af0c72f46 Mon Sep 17 00:00:00 2001 From: Wenrui Li Date: Tue, 7 Mar 2023 19:42:24 -0500 Subject: [PATCH] Fixed #1 empty sod list. --- pysaber/mainsr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysaber/mainsr.py b/pysaber/mainsr.py index 2f12371..dd43c17 100644 --- a/pysaber/mainsr.py +++ b/pysaber/mainsr.py @@ -86,7 +86,7 @@ def estimate_blur(rads,sod,odd,pix_wid,edge,thresh=1e-6,pad=[3,3],masks=None,bda trans_bounds_det.append(trans_bounds[i]) sod_det.append(sod[i]) sdd_det.append(sdd[i]) - elif sod[i] > sod_avg and not only_src: + elif sod[i] >= sod_avg and not only_src: rads_det.append(rads[i]) trans_models_det.append(trans_models[i]) trans_params_det.append(trans_params[i])