Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sample spec #50

Merged
merged 3 commits into from
Mar 3, 2021
Merged

Fix sample spec #50

merged 3 commits into from
Mar 3, 2021

Conversation

shankari
Copy link
Collaborator

@shankari shankari commented Mar 3, 2021

This helps with e-mission/e-mission-docs#624
by bringing the sample up to the modified spec format

Concretely:
- change all start and end locs to geojson
    - points for the calibration trips
    - polygons for the evaluation trips
- add all trajectories as polylines

this still fails some validation checks but let's check it in for now
before making any further changes
- fix the calibration mapping for the validation notebook
- fix the notebook to create ground truth for leg by:
    - adding multiple examples of methods to find the trajectories
    - fixed the mapping to the new format
- fix the spec
    - change the 52 bus stop polygon to match
    - fix the polygon for the foothill bus stop to not overlap the trajectory
    - fix the trajectory of the foothill walk to avoid repeated points
    - fix the formatting of other polygons to not be as verbose
so that it doesn't report errors if all entries between the duplicates are also
duplicates.

Concretely, if entries 31,32 and 33 are all duplicates, the previous code would
have returned an error.  But it is not really an error, since there would not
be any zigzag, just repeated points. This checks the intermediate points to see
if they are identical as well by adding an addition `for` loop.
@shankari
Copy link
Collaborator Author

shankari commented Mar 3, 2021

@singhish this has some fixes to the validation code

Can you also please add an inline test for the polygon checks when you are fixing
MobilityNet/mobilitynet.github.io#20

@shankari shankari merged commit 434f500 into master Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant