The transit library, partridge, apparently silently prunes out rows in the dataset; from the partridge Readme.rsg
At the core of Partridge is a dependency graph rooted at trips.txt. Disconnected data is pruned away according to this graph when reading the contents of a feed.
If other rows are being dropped silently, that could be surprising to the user and an indication there's a problem with the network. A warning would be preferable.
Are the fare file column types being read consistently as partridge?
Status
[x] Defined
[x] Planned
[x] Implemented
[x] Tested
To Reproduce
Reading MTC's version 12 standard transit files pre base project chards (without the fare patch) drop stops, fare_rules and fare_attributes. See image below, in which I added logging to a local partridge.
Failing tests
[ ] No applicable test failed, need to create.
Triggering line of code
Thoughts on resolution
If the dropping is legit, then warn on it. Not sure why the fare lines are being dropped... Could be a partridge bug?
Full stack trace
Environment
Operating system: Windows
Context (conda, jupyter, etc): conda jupyter
Environment (e.g. output from conda list):
Describe the bug
The transit library, partridge, apparently silently prunes out rows in the dataset; from the partridge Readme.rsg
This isn't obvious to the user of
network_wrangler
and resulted in some stops and a lot of fare rules and fare attributes being dropped. @i-am-sijia implemented a workaround to the fare files here: https://github.com/BayAreaMetro/network_wrangler/commit/068e0cf43ed342c1b9c3b4ef1debf20b43cc339aBut I have concerns with this:
Status
To Reproduce
Reading MTC's version 12 standard transit files pre base project chards (without the fare patch) drop stops, fare_rules and fare_attributes. See image below, in which I added logging to a local partridge.
Failing tests
Triggering line of code
Thoughts on resolution
If the dropping is legit, then warn on it. Not sure why the fare lines are being dropped... Could be a partridge bug?
Full stack trace
Environment
Operating system: Windows Context (conda, jupyter, etc): conda jupyter Environment (e.g. output from
conda list
):