2021-12-10 18:30:08 +01:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
# __julia-version__ = 1.7.0
|
|
|
|
# __author__ = "Max Kannenberg"
|
|
|
|
# __copyright__ = "2021"
|
|
|
|
# __license__ = "ISC"
|
2021-10-13 16:49:42 +02:00
|
|
|
|
2021-12-08 13:35:25 +01:00
|
|
|
using TrainRun, Test
|
2021-10-13 16:49:42 +02:00
|
|
|
|
2021-12-08 13:35:25 +01:00
|
|
|
allPaths=[]
|
2022-01-22 03:11:43 +01:00
|
|
|
push!(allPaths, importYamlFile(:path, "data/paths/path_1_10km_nConst_vConst.yaml"))
|
|
|
|
push!(allPaths, importYamlFile(:path, "data/paths/path_2_10km_nVar_vConst.yaml"))
|
|
|
|
push!(allPaths, importYamlFile(:path, "data/paths/path_3_10km_nConst_vVar.yaml"))
|
|
|
|
push!(allPaths, importYamlFile(:path, "data/paths/path_4_real_Germany_EastSaxony_DG-DN.yaml"))
|
|
|
|
|
2021-10-13 16:49:42 +02:00
|
|
|
|
2021-12-08 13:35:25 +01:00
|
|
|
allSettings=[]
|
2022-01-22 03:11:43 +01:00
|
|
|
push!(allSettings, importYamlFile(:settings, "data/settings.yaml"))
|
2021-10-13 16:49:42 +02:00
|
|
|
|
2021-12-08 13:35:25 +01:00
|
|
|
allTrains=[]
|
2022-01-22 03:11:43 +01:00
|
|
|
push!(allTrains, importYamlFile(:train, "data/trains/train_freight_V90withOreConsist.yaml"))
|
|
|
|
push!(allTrains, importYamlFile(:train, "data/trains/train_passenger_SiemensDesiroClassic.yaml"))
|
|
|
|
push!(allTrains, importYamlFile(:train, "data/trains/train_passenger_IC2.yaml"))
|
|
|
|
|
|
|
|
for path in allPaths
|
|
|
|
for train in allTrains
|
|
|
|
for settings in allSettings
|
2022-04-21 14:24:22 +02:00
|
|
|
testDict=trainRun(train, path, settings)
|
2022-01-22 03:11:43 +01:00
|
|
|
exportToCsv(testDict)
|
2021-12-10 18:30:08 +01:00
|
|
|
sleep(2)
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# compare result to test data set
|
|
|
|
end
|
|
|
|
end
|
2021-12-08 13:35:25 +01:00
|
|
|
end
|
2021-10-13 16:49:42 +02:00
|
|
|
|
|
|
|
println("test finished")
|
2021-12-10 18:30:08 +01:00
|
|
|
# TODO:
|
|
|
|
# print test results
|