Comments (4)
The following service_ids are missing in the output : [B.613,C.613,F.613,E.613,U.613,S.613]
Thanks for sharing your findings @praneethd7. I took a look at the linked GTFS file and it matches the results from partridge.
% curl -L -o trimet.zip https://transitfeeds.com/p/trimet/43/20220201/download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 18.1M 100 18.1M 0 0 16.6M 0 0:00:01 0:00:01 --:--:-- 31.9M
% unzip trimet.zip calendar.txt calendar_dates.txt
Archive: trimet.zip
inflating: calendar.txt
inflating: calendar_dates.txt
% cat calendar_dates.txt | grep 20220124
A.613,20220124,1
D.613,20220124,1
W.613,20220124,1
Q.613,20220124,1
% cat calendar.txt
service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date
B.613,0,0,0,0,0,0,0,20220123,20220205
B.614,0,0,0,0,0,0,0,20220206,20220514
C.613,0,0,0,0,0,0,0,20220123,20220205
C.614,0,0,0,0,0,0,0,20220206,20220514
A.613,0,0,0,0,0,0,0,20220123,20220205
A.614,0,0,0,0,0,0,0,20220206,20220514
F.613,0,0,0,0,0,0,0,20220123,20220205
F.614,0,0,0,0,0,0,0,20220206,20220514
E.613,0,0,0,0,0,0,0,20220123,20220205
E.614,0,0,0,0,0,0,0,20220206,20220514
D.613,0,0,0,0,0,0,0,20220123,20220205
D.614,0,0,0,0,0,0,0,20220206,20220514
W.613,0,0,0,0,0,0,0,20220123,20220205
W.614,0,0,0,0,0,0,0,20220206,20220514
Q.613,0,0,0,0,0,0,0,20220123,20220205
Q.614,0,0,0,0,0,0,0,20220206,20220514
U.613,0,0,0,0,0,0,0,20220123,20220205
U.614,0,0,0,0,0,0,0,20220206,20220514
S.613,0,0,0,0,0,0,0,20220123,20220205
S.614,0,0,0,0,0,0,0,20220206,20220514
The missing service_ids include both Light Rail & Bus route_type. For example B.613 (Light Rail) consists of the route 'MAX Red Line' that operates Monday-Friday & Weekends. This is perhaps most busiest line as it connects the Portland Airport. Also U.613 (Bus) consists of 48 routes. All the routes in this service_id can be seen [here].(http://gtfs.transitq.com/TriMet_20220201_20220201/serviceids/U.613)
Take a look at http://gtfs.transitq.com/TriMet_20220201_20220201/serviceids/A.613 and this gist showing that on 20220124 trips for the MAX Red Line
are covered by service_id A.613
.
from partridge.
Thank you @invisiblefunnel for the quick response and gist. I had an incorrect notion that service_ids
in calendars.txt
must be operational on all days between the start_date
and end_date
. Also I was unde the impression that two service_id
have no overlap of routes. After your response, I realized that despite 24th January, 2022 missing service_ids
: [B.613,C.613,F.613,E.613,U.613,S.613]
, the routes in these service_ids
are covered by ['A.613', 'D.613', 'Q.613', 'W.613']
(reported by partridge). However, I am still missing how the busiest day is actually reported. Is it the day with the maximum number of service_id
in the output of _service_ids_by_date()
?
from partridge.
However, I am still missing how the busiest day is actually reported. Is it the day with the maximum number of service_id in the output of _service_ids_by_date()?
Partridge uses the number of trips to approximate busyness. The earliest date is returned if multiple dates have the same number of trips.
partridge/partridge/readers.py
Lines 57 to 60 in df3167e
partridge/partridge/readers.py
Lines 117 to 128 in df3167e
partridge/partridge/readers.py
Lines 222 to 229 in df3167e
from partridge.
That makes sense! Thank you so much @invisiblefunnel!
from partridge.
Related Issues (20)
- read_service_ids_by_date AttributeError in 0.6.0 HOT 3
- Read the Docs HOT 10
- "read_trip_ids_by_day" - custom service day hours HOT 9
- detect_encoding very time consuming HOT 4
- write_feed_dangerously usage HOT 3
- Handle hours resetting at midnight HOT 3
- Build functionality to pull GTFS from a URL HOT 6
- Output time format is incorrect HOT 1
- Output date format is incorrect HOT 1
- Float representation of the parsed time is currently incorrect HOT 2
- pypi release missing geopandas integration HOT 3
- Converter for route_id HOT 10
- Crash on string-valued route_type HOT 4
- Frequencies by route for a given time period HOT 1
- load stops that correspond to the trips that are part of the specified service_id HOT 2
- Non-numeric IDs HOT 14
- cchardet doesn't work with python 3.10+ HOT 3
- numpy attribute issue in gtfs.py HOT 3
- pip package incompatible with numpy 1.25 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from partridge.