Skip to content

Commit

Permalink
Contrast curve check for scale_list adapted to allow for ADI contrast…
Browse files Browse the repository at this point in the history
… curve on 4D cubes
  • Loading branch information
VChristiaens committed Oct 7, 2024
1 parent edd0d95 commit 579345c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vip_hci/metrics/contrcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,12 +703,12 @@ def throughput(
raise TypeError(msg)
if psf_template.ndim != 3:
raise TypeError("Template PSF is not a frame, 3d array")
if "scale_list" not in algo_dict:
raise ValueError("Vector of wavelength not found")
else:
if "scale_list" in algo_dict:
# raise ValueError("Vector of wavelength not found")
# else:
if algo_dict["scale_list"].shape[0] != array.shape[0]:
raise TypeError("Input wavelength vector has wrong length")
if isinstance(fwhm, float) or isinstance(fwhm, int):
if np.isscalar(fwhm):
maxfcsep = int((array.shape[2] / 2.0) / fwhm) - 1
else:
maxfcsep = int((array.shape[2] / 2.0) / np.amin(fwhm)) - 1
Expand Down

0 comments on commit 579345c

Please sign in to comment.