Commit 2b6ba776 authored by Antonino D'Anna's avatar Antonino D'Anna

bug in read_meson_correction

parent c80b4a15
...@@ -386,18 +386,7 @@ function read_mesons_correction(path::String, g1::Union{String, Nothing}=nothing ...@@ -386,18 +386,7 @@ function read_mesons_correction(path::String, g1::Union{String, Nothing}=nothing
end end
end end
end end
## sort by gamma_structure
idx = Vector{Int64}(undef, length(corr_match))
is = 1
for (G1,G2) in type
aux = findall(x-> (x.type1 == G1 && x.type2==G2),c_header[corr_match])
if isnothing(aux)
continue;
end
l =length(aux);
idx[is:is+l-1] = aux
is += l;
end
for i in eachindex(idx) for i in eachindex(idx)
c = idx[i] c = idx[i]
......
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