You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when a track contains several segments with a pause between the segment, then the duration is including the pause.
I would like to change that, by removing the pause in the calculation of duration (ultimate goal is to calculate average speed without pause)
I am just having some questions:
Would it be acceptable Pulll Request or you consider pause being part of the track duration ?
If this is acceptable, should we make the calculation only in gpx_file or should we delegate the calculation to segment and track class ?
I am willing to perform this modification. But I also want to prevent proposing a modification that would not be accepted ;-)
Let me know if anything is not clear.
The text was updated successfully, but these errors were encountered:
@doc75 - good question. I'm open to both suggestions. As a runner myself, I prefer to not include track segment pauses, although this may matter to others who care about total duration between beginning and end.
What do you need duration for? In what manner are you using the GPXFile?
Could we possibly add an extra attribute on the GPXFile object? A moving duration (as opposed to the absolute duration)?
In terms of implementation, I would prefer each Segment be responsible for calculating its own duration, then have each successive container (Track, GPXFile) calculate its duration by aggregating the durations of their respective Segments.
doc75
pushed a commit
to doc75/gpx
that referenced
this issue
Aug 1, 2015
Hello,
I noticed that when a track contains several segments with a pause between the segment, then the duration is including the pause.
I would like to change that, by removing the pause in the calculation of duration (ultimate goal is to calculate average speed without pause)
I am just having some questions:
I am willing to perform this modification. But I also want to prevent proposing a modification that would not be accepted ;-)
Let me know if anything is not clear.
The text was updated successfully, but these errors were encountered: