Skip to content
Snippets Groups Projects
Commit a38cba54 authored by Ruben Haag's avatar Ruben Haag
Browse files

put_together ready for testing

parent f66e042a
Branches
Tags 6.0.0
No related merge requests found
This diff is collapsed.
...@@ -9,34 +9,33 @@ archive_path = ARGS[2] ...@@ -9,34 +9,33 @@ archive_path = ARGS[2]
xname = "frequency" xname = "frequency"
yname = "dt_latest_dropoff" yname = "dt_latest_dropoff"
paths = Dict(:data => path*"/data/",
:model => path*"/model/")
filenames = readdir(path, join=false)
csv_filenames = findall(x->occursin(".csv", x), filenames)
model_filenames = findall(x->occursin(".model", x), filenames)
println(csv_filenames)
println(filenames)
df = DataFrame(CSV.File(path*filenames[csv_filenames[1]]))
csv_filenames = readdir(paths[:data], join=true)
for i in csv_filenames df = DataFrame(CSV.File(csv_filenames[1]))
println(filenames[i])
for name in csv_filenames
#TODO put all the generated CSV Files together into one big file which is then saved to the correct location #TODO put all the generated CSV Files together into one big file which is then saved to the correct location
temp = DataFrame(CSV.File(path*filenames[i])) temp = DataFrame(CSV.File(name))
append!(df, temp) append!(df, temp)
end end
println("Saving Combined Dataframe to $archive_path") println("Saving Combined Dataframe to $archive_path")
CSV.write(archive_path*"results.csv", df) CSV.write(archive_path*"results.csv", df)
model_filenames = readdir(paths[:data], join=false)
println("Moving $(length(model_filenames)) Models to $archive_path") println("Moving $(length(model_filenames)) Models to $archive_path")
try try
mkdir("$archive_path/models/") mkdir("$archive_path/models/")
catch e catch e
println(e) println(e)
end end
for name in model_filenames for i in model_filenames
mv(path*name, archive_path*"/models/"*name) mv(paths[:model]*file, "$archive_path/models/"*name)
end end
...@@ -44,5 +43,3 @@ end ...@@ -44,5 +43,3 @@ end
#TODO put all the generated models in an archive file and save it to the archiving location #TODO put all the generated models in an archive file and save it to the archiving location
#TODO make Plots from the CSV files
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment