Skip to content

Commit

Permalink
Minor bug fix in annular median sub regarding: edge-blending strategy…
Browse files Browse the repository at this point in the history
… for derotation now properly taken into account
  • Loading branch information
VChristiaens committed Mar 3, 2025
1 parent 5b3c461 commit abc097e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vip_hci/psfsub/medsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ def median_sub(*all_args: List, **all_kwargs: dict):
ARRAY -= model_psf

# Depending on the ``mode``
cube_out = ARRAY
if algo_params.mode == "fullfr":
# MASK AFTER DEROTATION TO AVOID ARTEFACTS
# if radius_int > 0:
# cube_out = mask_circle(ARRAY, radius_int, fillwith=np.nan)
# else:
# cube_out = ARRAY
cube_out = ARRAY
if algo_params.cube_ref is not None:
if 'sc' in algo_params.collapse_ref:
if len(algo_params.collapse_ref) > 9: # ie radii given?
Expand Down Expand Up @@ -307,6 +306,7 @@ def median_sub(*all_args: List, **all_kwargs: dict):
print("Median psf reference subtracted")

elif algo_params.mode == "annular":
cube_out = np.zeros_like(ARRAY)
n_annuli = int((y / 2 - algo_params.radius_int) / algo_params.asize)
if algo_params.verbose:
print("N annuli = {}, FWHM = {}".format(
Expand Down

0 comments on commit abc097e

Please sign in to comment.