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

Only one POI is calculated of POIs with the same position #56

Closed apriljunge closed 2 months ago

apriljunge commented 4 months ago

If two POIs have the same position (calculated position s) , only one POI is returned. The others are omitted without any warning.

kaat0 commented 4 months ago

Would you prefer a warning or a double entry at the position in the trainrun Dataframe?

apriljunge commented 4 months ago

The best way would be to keep all entrys.

Think of making multiple calculations with different train lengths. On some trains pois could be omitted, when the calculated position s of a front poi and a rear poi are the same.