Skip to content

Commit

Permalink
Adapted FMMF function for SNR and flux to be float values instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
VChristiaens committed Feb 18, 2025
1 parent 22e3258 commit dd0740f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vip_hci/invprob/fmmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def _snr_contrast_esti(
indicesy = indices[0][0]
indicesx = indices[0][1]

flux_esti = np.zeros_like(indicesy)
prob_esti = np.zeros_like(indicesy)
flux_esti = np.zeros(indicesy.shape)
prob_esti = np.zeros(indicesy.shape)

var_f = _var_esti(mcube, angle_list, var, crop, ann_center)

Expand Down Expand Up @@ -709,7 +709,9 @@ def KLIP_patch(frame, matrix, numbasis, angle_list, fwhm, pa_threshold,
indices_left = _find_indices_adi(
angle_list, frame, pa_threshold, truncate=False, nframes=nframes
)

if len(indices_left) == 0:
msg = "No frame index left matching pa threshold. Reduce delta_rot."
raise ValueError(msg)
refs = matrix[indices_left]

else:
Expand Down

0 comments on commit dd0740f

Please sign in to comment.