New API in upcoming version #57
Replies: 4 comments 11 replies
-
They seem to do it with global variables |
Beta Was this translation helpful? Give feedback.
-
With
|
Beta Was this translation helpful? Give feedback.
-
running_time!(drivingCourse) # return the running time as a _number_ |
Beta Was this translation helpful? Give feedback.
-
The idea of including the Point of Interest (POI) in the calculation is to explicitly calculate at that specific point and not interpolate. This is needed when a stepsize would overstep the POI. However, I do see the advantage of including both methods for calculating the data at a POI. |
Beta Was this translation helpful? Give feedback.
-
Because of some discussions in #56, #55 and #54 I thought of maybe changing or providing an alternative API to use trainruns.
As this would be a big refactoring and a breaking change should discuss this if this is really needed and what are benefits and downsides and how this would work out with #43 and #41.
One proposal would be to separate the calculation of POIs from the trainruns method. POIs, as they are implemented now, have no influence on the travel time of the train. Therefore my suggestion would be to have a new method like
timing_at()
or similar. The code could then look like this:Maybe theres not need passing the
drivingCourse
variable and reduce it todriving_data_at!(10000, :measure=:front)
like Makie.jl does it. But I have no idea how 😄Pros:
Cons:
Maybe one could get something similar for
:running_path
setting?Beta Was this translation helpful? Give feedback.
All reactions