railtoolkit / TrainRuns.jl

TrainRun.jl will take a user-defined train and a path as an input for a train run calculation. It can calculate the train run as a time-efficient or energy-efficient operation mode. The results can then be used within the Julia environment.
https://railtoolkit.org/projects/trainruns.jl
ISC License
5 stars 2 forks source link

`Train()` constructor needs a `trains:` key but railtoolkit/schema does not specifies it #21

Closed kaat0 closed 3 months ago

kaat0 commented 2 years ago
ERROR: KeyError: key "trains" not found
Stacktrace:
 [1] getindex(h::Dict{Any, Any}, key::String)
   @ Base ./dict.jl:481
 [2] Train(file::String, type::Symbol)
   @ TrainRuns ~/.julia/dev/TrainRuns/src/constructors.jl:489
 [3] Train(file::String)
   @ TrainRuns ~/.julia/dev/TrainRuns/src/constructors.jl:288

Either amend the constructor or change the railtoolkit/schema.

See also: https://github.com/railtoolkit/schema/issues/3