Closed takohei closed 3 months ago
GTFSデータ解析のためのgtfs_parser
ライブラリが大幅に更新されました。主な変更点はAggregator
クラスのメソッドの追加と削除、データフレームの処理方法の改善、およびGeoJSON機能生成のための新しい関数の導入です。これにより、より効率的かつ柔軟なデータ処理が可能になります。
ファイル | 変更概要 |
---|---|
gtfs_parser/aggregate.py |
Aggregator クラスのメソッドの追加・削除、__init__ メソッドの更新 |
gtfs_parser/gtfs.py |
load_df 関数にlocation_type 列の処理を追加 |
gtfs_parser/parse.py |
停留所とルートの読み取り処理の変更、GeoJSON機能生成のための新しい関数 |
tests/test_aggregator.py |
新しいテスト関数の追加 |
🐰✨
新しい道へと進むたび
コードの森を駆け巡る
データの流れを整え
地図上に軌跡を描く
変化を楽しむ我らが旅
🌟🌲🌲🌲🌲🌲🌲
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 91.10169%
with 21 lines
in your changes are missing coverage. Please review.
Project coverage is 91.24%. Comparing base (
98f7fad
) to head (34daec8
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
tests/test_aggregator.py | 85.91% | 10 Missing :warning: |
gtfs_parser/aggregate.py | 93.16% | 8 Missing :warning: |
gtfs_parser/parse.py | 93.47% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
LGTM!
Close Issues
1
5
Benchmark
data set
results
remarks
Current read_routes()@parse.py has 2 bugs. I fix them temporary and use for measurement. Like this:
Description(変更内容)
Accelerate and refactor for aggregation, especially for stop unification
max_distance_degree
0.01 to 0.003 and add process of join near groups.__aggregate_similar_stops()
into small static methods.read_route_frequency()
Add read_stop_relations() to Aggregator
read_stop_relations()
that returns relations of stops and similar stops as a list of dictionaries.Acclerate and refactor read_routes()
read_routes()
into some small methods.Acclerate read_stops()
Add test cases for aggregation
Manual Testing(手動テスト)
Please check in QGIS on your Mac OS.