Skip to content

Commit

Permalink
Update src/write_csv.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Paniagua <[email protected]>
  • Loading branch information
CallieHsu and cpaniaguam authored Sep 20, 2023
1 parent 6b2eb40 commit a71bba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/write_csv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit a71bba0

Please sign in to comment.