From 9e8342afcca83261853f1115b0342a6cee2ce707 Mon Sep 17 00:00:00 2001
From: Ruben Haag <rhaag@uran001.dcf.ds.mpg.de>
Date: Sat, 4 Dec 2021 13:58:52 +0100
Subject: [PATCH] current version

---
 put_together.jl | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/put_together.jl b/put_together.jl
index fbc4d2f..63a0d44 100644
--- a/put_together.jl
+++ b/put_together.jl
@@ -12,15 +12,16 @@ yname = "dt_earliest_pickup"
 
 
 filenames = readdir(path, join=false)
-csv_filenames = findall(x-->occursin('.csv', x), filenames)
-model_filenames = findall(x-->occursin('.model', x), filenames)
+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]]))
 
-df = DataFrame(csv_files[1])
 
-
-for name in csv_filenames
+for i 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*name))
+    temp = DataFrame(CSV.File(path*filenames[i]))
     append!(df, temp)
 end
 println("Saving Combined Dataframe to $archive_path")
-- 
GitLab