insight-lane / crash-model

Build a crash prediction modeling application that leverages multiple data sources to generate a set of dynamic predictions we can use to identify potential trouble spots and direct timely safety interventions.
https://insightlane.org
MIT License
112 stars 40 forks source link

Filter out crashes that don't snap to a segment #281

Closed j-t-t closed 4 years ago

j-t-t commented 4 years ago

Note: This shouldn't be merged until after the flask app is merged because it contains the code from that branch as well.

This fixes the issue where melbourne's crashes are appearing outside the area we're specifying. I've moved Alice's crash rollup code downstream to join_segments_crash, and dropped all the crash records that don't snap to a segment. The crashes_rollup file will now be written to the processed directory, and when this is merged, I'll update the data directory with crashes_rollup in the right place.

codecov[bot] commented 4 years ago

Codecov Report

Merging #281 into master will increase coverage by 0.6%. The diff coverage is 90.16%.

@@            Coverage Diff            @@
##           master     #281     +/-   ##
=========================================
+ Coverage   60.78%   61.38%   +0.6%     
=========================================
  Files          32       32             
  Lines        3195     3224     +29     
=========================================
+ Hits         1942     1979     +37     
+ Misses       1253     1245      -8