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

Input as DataFrame #37

Closed kaat0 closed 1 year ago

kaat0 commented 1 year ago

For example:

characteristic_sections = DataFrame(s_start=Real[], s_end=Real[], speed=Real[], resistance=Real[])
points_of_interest = DataFrame(position=Real[], label=String[], measure=String[])

path = TrainRuns.Path(characteristic_sections, poi=points_of_interest)

Refactor Path() type to: TrainRuns.Path(sections; poi, name, id, uuid) with sane name, id, and uuidattribute defaults.