From 6f4e2470eb290c94c429aa2ebe158581db03fea1 Mon Sep 17 00:00:00 2001 From: VChristiaens Date: Fri, 19 Apr 2024 13:01:10 +0200 Subject: [PATCH] check on separation when calculating snr adapted to avoid bug for integer values of fwhm --- vip_hci/metrics/snr_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vip_hci/metrics/snr_source.py b/vip_hci/metrics/snr_source.py index d7b70624..747824b7 100644 --- a/vip_hci/metrics/snr_source.py +++ b/vip_hci/metrics/snr_source.py @@ -261,7 +261,7 @@ def indep_ap_centers(array, source_xy, fwhm, exclude_negative_lobes=False, if exclude_theta_range is not None: exc_theta_range = list(exclude_theta_range) - if not sep > (fwhm / 2) + 1: + if not sep > (fwhm / 2): raise RuntimeError('`source_xy` is too close to the frame center') # sens = 'clock' # counterclock