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
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)
c = idx[i]
......@@ -1585,4 +1574,4 @@ function read_ens_csv(ens::EnsInfo)
end
return pp_sym, ap_sym, [pp_ll;pp_ls;pp_ss;pp_ll_2;pp_ls_2;pp_ss_2], [ap_ll;ap_ls;ap_ss;ap_ll_2;ap_ls_2;ap_ss_2]
end
\ No newline at end of file
end
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