Closed jhanley634 closed 2 months ago
This pull request optimizes the vehicle plotting functionality and improves the performance of API key handling. The main changes include refactoring the plot_agency_vehicles function, updating the get_recent_vehicle_journeys query, and replacing pandas with csv for API key reading.
Change | Details | Files |
---|---|---|
Optimized vehicle plotting functionality |
|
src/bboard/transit/vehicles.py |
Modified get_recent_vehicle_journeys query |
|
src/bboard/transit/vehicles.py |
Improved API key handling |
|
src/bboard/util/credentials.py tests/credentials_test.py src/bboard/util/credential_env_vars.py |
Added _asdict method to Base class |
|
src/bboard/models/iss_position.py tests/iss_test.py |
Updated transit periodic update function |
|
src/bboard/util/lifespan_mgmt.py |
Summary by Sourcery
Improve the performance of vehicle plotting by using a scatter plot and refactor API key handling to use a dictionary instead of a DataFrame. Enhance the IssPosition model with a method to convert instances to dictionaries and update tests accordingly.
Enhancements:
Tests: