updated minimal working example in README.md

development v1.0.0
Martin Scheidt 2022-06-05 18:14:25 +02:00
parent fbdf7bed8f
commit a7f07283a1
1 changed files with 3 additions and 3 deletions

View File

@ -32,10 +32,10 @@ The required julia packages are
```julia
using TrainRuns
train = Train("test/data/trains/freight.yaml")
path = Path("test/data/paths/const.yaml")
train = Train("train.yaml") # load train from file
path = Path("path.yaml") # load running path from file
runtime = trainrun(train, path)
runtime = trainrun(train, path)[end,:t]
println("The train needs $runtime seconds for the running path.")
```