function read_mesons(path::String,g1::Union{String,Nothing}=nothing,g2::Union{String,Nothing}=nothing;id::Union{Int64,Nothing}=nothing,legacy::Bool=false)
@@ -99,8 +110,8 @@ function read_mesons(path::String, g1::Union{String, Nothing}=nothing, g2::Union
end
data=open(path,"r")
g_header=read_global_header(path)
c_header=read_CHeader(path)
g_header=read_GHeader(path)
c_header=read_CHeader(path,legacy=legacy)
ncorr=g_header.ncorr
tvals=g_header.tvals
...
...
@@ -159,8 +170,8 @@ function read_mesons(path::String, g1::Union{String, Nothing}=nothing, g2::Union
returnres
end
function read_mesons(path::Vector{String},g1::Union{String,Nothing}=nothing,g2::Union{String,Nothing}=nothing;id::Union{Int64,Nothing}=nothing)
res=read_mesons.(path,g1,g2,id=id)
function read_mesons(path::Vector{String},g1::Union{String,Nothing}=nothing,g2::Union{String,Nothing}=nothing;id::Union{Int64,Nothing}=nothing,legacy::Bool=false)