Commit 0f06a290 authored by Alessandro 's avatar Alessandro

update in getall_eigvals and uwerr(ydata) removed in...

update in getall_eigvals and uwerr(ydata) removed in juobs_tools.jl/fit_routine in order to choose a different wpm windows. Otherwise it does not work
parent 08e2b69f
...@@ -179,7 +179,7 @@ evals = getall_eigvals(matrices, 5) #where t_0=5 ...@@ -179,7 +179,7 @@ evals = getall_eigvals(matrices, 5) #where t_0=5
Julia> Julia>
``` ```
""" """
function getall_eigvals(a::Vector{Matrix}, t0::Int64; iter=30 ) function getall_eigvals(a::Vector{Matrix{uwreal}}, t0::Int64; iter=30 )
n = length(a) n = length(a)
res = Vector{Vector{uwreal}}(undef, n) res = Vector{Vector{uwreal}}(undef, n)
[res[i] = uweigvals(a[i], a[t0]) for i=1:n] [res[i] = uweigvals(a[i], a[t0]) for i=1:n]
......
...@@ -375,7 +375,7 @@ fit_routine(model, xdata, ydata, param=3, covar=true) ...@@ -375,7 +375,7 @@ fit_routine(model, xdata, ydata, param=3, covar=true)
``` ```
""" """
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)
isnothing(wpm) ? uwerr.(ydata) : uwerr.(ydata, wpm) #isnothing(wpm) ? uwerr.(ydata) : uwerr.(ydata, wpm)
yval = value.(ydata) yval = value.(ydata)
yer = err.(ydata) yer = err.(ydata)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment