From a71bba04adebf547328d19afd793125451e5efbd Mon Sep 17 00:00:00 2001 From: CallieHsu <62089495+CallieHsu@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:27:46 -0400 Subject: [PATCH] Update src/write_csv.jl Co-authored-by: Carlos Paniagua --- src/write_csv.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_csv.jl b/src/write_csv.jl index ae3197b..6294dbb 100644 --- a/src/write_csv.jl +++ b/src/write_csv.jl @@ -14,7 +14,7 @@ function write_csv(df::DataFrame, erupt_saved::EruptSaved{Float64}, path::String "total_mass_CO2", ] rename!(df, ["timestamp" => "time"]) - rename!(df, ["value$i" => names[i] for i in 1:10]) + rename!(df, ["value$i" => name for (i, name) in enumerate(names)]) # add eps_x column m_h2o = df[:, "total_mass_H2O"] ./ df[:, "total_mass"] m_co2 = df[:, "total_mass_CO2"] ./ df[:, "total_mass"]