Skip to content

Commit

Permalink
PCA-ADI step of 2-stage PCA-SADI is now compatible with a threshold i…
Browse files Browse the repository at this point in the history
…n rotation (delta_rot, source_xy and min_frames_pca now propagated)
  • Loading branch information
VChristiaens committed Nov 24, 2024
1 parent c0ddeaf commit d89bfb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vip_hci/psfsub/pca_fullfr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def _adimsdi_doublepca(
ann_center = dist(yc, xc, y1, x1)
pa_thr = _compute_pa_thresh(ann_center, fwhm, delta_rot)

res_ifs_adi = np.zeros_like(cube)
res_ifs_adi = np.zeros_like(residuals_cube_channels)
for frame in range(n):
ind = _find_indices_adi(angle_list, frame, pa_thr)

Expand All @@ -1308,7 +1308,7 @@ def _adimsdi_doublepca(
left_eigv=left_eigv,
min_frames_pca=min_frames_pca,
)
res_ifs_adi[frame] = res_result[-1]
res_ifs_adi[frame] = res_result[-1].reshape((y_in, x_in))

if verbose:
print("De-rotating and combining residuals")
Expand Down

0 comments on commit d89bfb5

Please sign in to comment.