From 804f797b08f221ce9a996716b64ad281b5e25981 Mon Sep 17 00:00:00 2001 From: Max Kannenberg <95709892+MaxKannenberg@users.noreply.github.com> Date: Wed, 24 Aug 2022 10:08:20 +0200 Subject: [PATCH] Fix typing error (change time to :time) --- src/behavior.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/behavior.jl b/src/behavior.jl index 76795ac..34d11e6 100644 --- a/src/behavior.jl +++ b/src/behavior.jl @@ -321,7 +321,7 @@ function addCruisingSection!(drivingCourse::Vector{Dict}, stateFlags::Dict, CSs: drivingCourse[end][:a] = 0.0 # create the next support point - if settings.stepVariable == :distance || settings.stepVariable == time + if settings.stepVariable == :distance || settings.stepVariable == :time push!(drivingCourse, moveAStep(drivingCourse[end], settings.stepVariable, currentStepSize, csId)) else push!(drivingCourse, moveAStep(drivingCourse[end], settings.stepVariable, train.length/(10.0^cycle), csId)) # TODO which step size should be used?