TravelMapping / DataProcessing

Data Processing Scripts and Programs for Travel Mapping Project
4 stars 6 forks source link

formerly connected routes #500

Closed yakra closed 2 years ago

yakra commented 2 years ago

These code blocks appear to be indented 1 "unit" (4 spaces) too far: https://github.com/TravelMapping/DataProcessing/blob/3cc4219090eb4bc2341571a7287442dcdfe054ed/siteupdate/python-teresco/siteupdate.py#L1602-L1607 https://github.com/TravelMapping/DataProcessing/blob/3cc4219090eb4bc2341571a7287442dcdfe054ed/siteupdate/python-teresco/siteupdate.py#L1614-L1619

C++ version has it right, I believe. Make test cases & check for diffs:

yakra commented 2 years ago

melvin1.list

OR US20 ButMarRd US97(136)
WY US20 SheAve_W US14Alt/120_W
DEU-NW A61 23 108(A1)

DEU-NW A61Mon NLD/DEU DEU-BW A61 65
OR US20 US101 MA US20 MA2_E

melvin2.list

OR US20 ButMarRd US97(136)
WY US20 SheAve_W US14Alt/120_W
DEU-NW A61 23 108(A1)

DEU-BW A61 65 DEU-NW A61Mon NLD/DEU
MA US20 MA2_E OR US20 US101

Both produce identical logs for the purposes of discussing this bug. Will focus only on C++ <-> Python differences from here on out.


yakra commented 2 years ago

The bug where insertions on good lines prevent notifications on bad lines also affects 4-field lines. Fixing this fixes yakra#202 in the process, and we get a whole bunch of notifications that were missed before, e.g. terescoj.log:

1c1
< Log file created at: 2022-02-26 12:38:49.598201
---
> Log file created at: Sat Feb 26 13:24:22 2022
5a6
>   Route updated 2021-07-05: WI US45