Closed dracos closed 7 years ago
Thanks! I'm glad you worked around it by editing the csv files manually. Will look into it.
Fixed. count_vehicles_on_screen() no longer assumes a 24 hour window, but finds the true min and max dates from the dataset. @dracos
Thanks :)
You can see the problem with e.g.
python transitflow.py --name="CrossCountry" --operator o-gc-crosscountry
The first train is at 04:44, last train ends at 00:07.The start/end frames of the trips are calculated by treating minDate-maxDate as mapping to all the frames. But the counts are treated as one count per frame, starting at midnight. This means that the displayed lines/counts do not match the display of the trips.
I have worked around this by editing the csv files to match up the counts to the right times.