TrainRun.jl/examples/MinimalWorkingExample.jl

41 lines
1.1 KiB
Julia
Raw Normal View History

2021-12-08 13:35:25 +01:00
include("../src/TrainRun.jl")
using .TrainRun
2021-10-13 16:49:42 +02:00
# println("")
# println("________________________")
# println("")
2021-12-08 13:35:25 +01:00
allPaths=[]
push!(allPaths, "../data/paths/path_1_10km_nConst_vConst.yaml")
push!(allPaths, "../data/paths/path_2_10km_nVar_vConst.yaml")
push!(allPaths, "../data/paths/path_3_10km_nConst_vVar.yaml")
2021-12-13 11:56:22 +01:00
push!(allPaths, "../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=[]
push!(allSettings, "../data/settings.yaml")
2021-10-13 16:49:42 +02:00
2021-12-08 13:35:25 +01:00
allTrains=[]
push!(allTrains, "../data/trains/train_freight_V90withOreConsist.yaml")
2021-12-13 11:56:22 +01:00
push!(allTrains, "../data/trains/train_passenger_SiemensDesiroClassic.yaml")
2021-12-08 13:35:25 +01:00
push!(allTrains, "../data/trains/train_passenger_IC2.yaml")
2021-10-13 16:49:42 +02:00
2021-12-08 13:35:25 +01:00
for pathDirectory in allPaths
2021-10-13 16:49:42 +02:00
# println("")
2021-12-08 13:35:25 +01:00
# println(" - - - - - - - - -")
# println("path: ", pathDirectory)
for trainDirectory in allTrains
# println("train: ", trainDirectory)
for settingsDirectory in allSettings
testDict=calculateDrivingDynamics(trainDirectory, pathDirectory, settingsDirectory)
sleep(2)
# println("")
# println("")
# println("")
end
end
2021-10-13 16:49:42 +02:00
end