function lin_fit(x::Vector{Real},y::Vector{uwreal})
function lin_fit(x::Vector{<:Real},y::Vector{uwreal})
uwerr.(y)
par=lin_fit(x,value.(y),err.(y))
...
...
@@ -150,7 +150,7 @@ The method return an array upar with the best fit parameters with their errors.
@. model(x,p) = p[1] + p[2] * exp(-(p[3]-p[1])*x)
fit_routine(model, ydata, param=3)
"""
function fit_routine(model::Function,xdata::Array{Real},ydata::Array{uwreal},param::Int64=3;wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing)
function fit_routine(model::Function,xdata::Array{<:Real},ydata::Array{uwreal},param::Int64=3;wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing)
yval=value.(ydata)
yer=err.(ydata)
chisq=gen_chisq(model,xdata,yer)
...
...
@@ -164,7 +164,7 @@ function fit_routine(model::Function, xdata::Array{Real}, ydata::Array{uwreal},