Skip to content

Commit

Permalink
check on separation when calculating snr adapted to avoid bug for int…
Browse files Browse the repository at this point in the history
…eger values of fwhm
  • Loading branch information
VChristiaens committed Apr 19, 2024
1 parent b3da370 commit 6f4e247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vip_hci/metrics/snr_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f4e247

Please sign in to comment.