RvSpectML/EchelleCCFs.jl

default value for `plan_for_chunk` optional argument does not match type

Closed this issue · 3 comments

function calc_order_ccfs_chunklist!(chunk_ccfs_out::AbstractArray{T1,2}, chunk_list::AbstractChunkList,
plan_for_chunk::AbstractVector{PlanT} = BasicCCFPlan(); assume_sorted::Bool = false ) where {
T1<:Real, PlanT<:AbstractCCFPlan }

plan_for_chunk must be a vector of PlanT types, but BasicCCFPlan() returns only one PlanT object

Same for:

function calc_order_ccfs_chunklist(chunk_list::AbstractChunkList,
plan_for_chunk::AbstractVector{PlanT} = BasicCCFPlan();
Δfwhm::Real = 0, assume_sorted::Bool = false ) where {
PlanT<:AbstractCCFPlan }

Same for:

function calc_order_ccf_and_vars_chunklist!(chunk_ccfs_out::AbstractArray{T1,2}, chunk_ccf_vars_out::AbstractArray{T1,2}, chunk_list::AbstractChunkList,
plan_for_chunk::AbstractVector{PlanT} = BasicCCFPlan(); assume_sorted::Bool = false ) where {
T1<:Real, PlanT<:AbstractCCFPlan }

function calc_order_ccf_and_vars_chunklist(chunk_list::AbstractChunkList,
plan_for_chunk::AbstractVector{PlanT} = BasicCCFPlan();
Δfwhm::Real = 0, assume_sorted::Bool = false ) where {
PlanT<:AbstractCCFPlan }