Skip to content

Commit

Permalink
Oops part 2 - forgot csv
Browse files Browse the repository at this point in the history
Switch from saving jld2 files to csv files for output dataframes.
  • Loading branch information
agchesebro committed Aug 26, 2024
1 parent 92deba4 commit 34a9790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blox/reinforcement_learning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ end

function save_voltages(sol, filepath, numtrial)
df = DataFrame(sol)
fname = "sim"*lpad(numtrial, 4, "0")*".jld2"
fname = "sim"*lpad(numtrial, 4, "0")*".csv"
fullpath = joinpath(filepath, fname)
jldsave(fullpath; df)
CSV.write(fullpath, df)
end

0 comments on commit 34a9790

Please sign in to comment.