@@ -164,6 +164,39 @@ function fit_mass(en_i::Array{uwreal}; t_in::Int64=3, wpm::Union{Nothing, Dict{I
println("\nPar[1] is ",par[1])
returnpar[1]
end
function gevp_dec(mat_obs::Vector{MatInfo},mass::Vector{uwreal};t0::Int64=2,delta_t_in::Array{Int64}=[2,5],wpm::Union{Nothing,Dict{Int64,Vector{Float64}}}=nothing)
y0s=getfield.(mat_obs,:y0)
mu_list=getfield.(mat_obs,:mu)
plat_dec0=Vector{uwreal}(undef,length(mat_obs))
foriin1:length(mat_obs)
mat=getfield(mat_obs[i],:mat_list)[y0s[i]+2:end-1]#matrices to diagonalise for a given sector [i]
evecs=getall_eig(mat,t0)
elem=mat_elem(evecs,mat,mass[i],1)#ground and excited state energy