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

current Version

parent 81d7f901
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -3,26 +3,45 @@ using CSV
using DataFrames
using DelimitedFiles
path = ARGS[1]
len = eval(Meta.parse(ARGS[2]))
archive_path = ARGS[3]
xname = "frequency"
yname = "dt_earliest_pickup"
lm = readdlm(path*"1.csv", ',', header=true, Any)
file=CSV.File(path*"1.csv")
println(file)
df = DataFrame(file)
filenames = readdir(path, join=false)
csv_filenames = findall(x-->occursin('.csv', x), filenames)
model_filenames = findall(x-->occursin('.model', x), filenames)
df = DataFrame(csv_files[1])
for i in 2:len
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
temp = DataFrame(CSV.File(path*"$i.csv"))
temp = DataFrame(CSV.File(path*name))
append!(df, temp)
end
println("Saving Combined Dataframe to $archive_path")
CSV.write(archive_path*"results.csv", df)
println("Moving Models to $archive_path")
try
mkdir("$archive_path/models/")
catch e
println(e)
end
for name in model_filenames
mv(path*name, archive_path*"/models/"*name)
end
x, y = df[!,xname], df[!,yname]
ks = names(df)
......@@ -41,6 +60,7 @@ for name in ks
savefig(path*"$name.png")
end
#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.
Finish editing this message first!
Please register or to comment