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

Better handling of multiple paths in one file #60

Open apriljunge opened 4 months ago

apriljunge commented 4 months ago

https://github.com/railtoolkit/TrainRuns.jl/blob/cea3341f568166257536c303589db04359d5038c/src/constructors.jl#L211

If several paths are specified in a YAML file, only the first path in the file is calculated. The others are ignored and cannot be selected.

This should be improved. Either by calculating all paths separately (which would be a major modification) or with an optional second parameter that allows paths to be selected via the id, the name or the uuid.