@@ -277,7 +277,7 @@ function throughput(alg, cube::AbstractArray{T,3}, angles, psf_model;
277
277
return output, (distance= radii, fake_comps= fake_comps_full, noise= noise)
278
278
end
279
279
280
- _fix_range (radii, cube:: AbstractArray{T,3 } ) where {T} = radii
280
+ _fix_range (radii, cube:: AbstractArray{T} ) where {T} = radii
281
281
_fix_range (radii, cube:: AnnulusView ) = filter (r -> cube. rmin ≤ r ≤ cube. rmax, radii)
282
282
function _fix_range (radii, cube:: MultiAnnulusView )
283
283
rmin, rmax = extrema (cube. radii) .- cube. width / 2
@@ -334,7 +334,7 @@ function throughput(alg, cube::AbstractArray{T,4}, angles, psf_model, scales;
334
334
335
335
inject! (tmp_frame, psf_model; x, y, amp= mean (A .* flux_scale), fwhm)
336
336
for wl_idx in axes (tmp_cube, 3 )
337
- inject! (tmp_cube, psf_model, angles; x, y, amp= A * flux_scale[wl_idx], fwhm)
337
+ inject! (tmp_cube[:, :, wl_idx, :] , psf_model, angles; x, y, amp= A * flux_scale[wl_idx], fwhm)
338
338
end
339
339
340
340
return CircularAperture (x, y, fwhm / 2 )
@@ -343,7 +343,7 @@ function throughput(alg, cube::AbstractArray{T,4}, angles, psf_model, scales;
343
343
fake_comps_full .+ = tmp_frame
344
344
345
345
# get reduced output after subtracting and collapsing
346
- reduced = alg (tmp_cube, angles; kwargs... )
346
+ reduced = alg (tmp_cube, angles, scales ; kwargs... )
347
347
348
348
injected_flux = photometry (apertures, tmp_frame). aperture_sum
349
349
recovered_flux = photometry (apertures, reduced .- reduced_empty). aperture_sum
0 commit comments