TrainRun.jl/docs/examples/MinimalWorkingExample.jl

12 lines
276 B
Julia
Raw Normal View History

2022-04-28 17:02:40 +02:00
#!/usr/bin/env julia
2022-05-04 16:53:58 +02:00
using TrainRuns
2022-04-28 17:02:40 +02:00
train = Train("test/data/trains/freight.yaml")
path = Path("test/data/paths/const.yaml")
2022-04-28 17:02:40 +02:00
runtime_dataFrame = trainrun(train, path)
runtime = runtime_dataFrame[!, 1][2]
2022-04-28 17:02:40 +02:00
println("The train needs $runtime seconds for the running path.")