kuanb / peartree

peartree: A library for converting transit data into a directed graph for sketch network analysis.
MIT License
201 stars 23 forks source link

[feature] Enable customized wait time estimation #110

Closed kuanb closed 5 years ago

kuanb commented 5 years ago

Fixes https://github.com/kuanb/peartree/issues/109

A user can now pass in a custom method for handling wait time. The default is set in paths under _calculate_means_default. A user could supply, say, a more optimistic operation to select the shortest delay between stops, or to note multimodal arrival distributions and account for them when determining edge cost.

codecov[bot] commented 5 years ago

Codecov Report

Merging #110 into master will increase coverage by 0.78%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
+ Coverage   90.92%   91.71%   +0.78%     
==========================================
  Files          13       13              
  Lines        1058     1050       -8     
==========================================
+ Hits          962      963       +1     
+ Misses         96       87       -9
Impacted Files Coverage Δ
peartree/graph.py 97.14% <100%> (ø) :arrow_up:
peartree/parallel.py 96.18% <100%> (-0.22%) :arrow_down:
peartree/summarizer.py 97.5% <100%> (+5.14%) :arrow_up:
peartree/paths.py 96.49% <100%> (+0.74%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2fe81ef...267d26e. Read the comment docs.