This faction read a mesons dat file at a given path and returns a vector of CData structures for different masses and Dirac structures.
This faction read a mesons dat file at a given path and returns a vector of CData structures for different masses and Dirac structures.
Dirac structures g1 and/or g2 can be passed as string arguments in order to filter correaltors.
Dirac structures g1 and/or g2 can be passed as string arguments in order to filter correaltors.
ADerrors id can be specified as argument. If is not specified, the id is fixed according to the ensemble name (example: "H400"-> id = 400)
ADerrors id can be specified as argument. If is not specified, the id is fixed according to the ensemble name (example: "H400"-> id = 400)
*For the old version (without smearing, distance preconditioning and theta) set legacy=true
Examples:
Examples:
```@example
```@example
read_mesons(path)
read_mesons(path)
...
@@ -83,12 +95,13 @@ read_mesons(path, "G5")
...
@@ -83,12 +95,13 @@ read_mesons(path, "G5")
read_mesons(path, nothing, "G5")
read_mesons(path, nothing, "G5")
read_mesons(path, "G5", "G5")
read_mesons(path, "G5", "G5")
read_mesons(path, "G5", "G5", id=1)
read_mesons(path, "G5", "G5", id=1)
read_mesons(path, "G5_d2", "G5_d2", legacy=true)
```
```
"""
"""
function read_mesons(path::String,g1::Union{String,Nothing}=nothing,g2::Union{String,Nothing}=nothing;id::Union{Int64,Nothing}=nothing)
function read_mesons(path::String,g1::Union{String,Nothing}=nothing,g2::Union{String,Nothing}=nothing;id::Union{Int64,Nothing}=nothing,legacy::Bool=false)