Open iantei opened 1 month ago
Testing Scenario:
Dataset used: cortezebikes
Execution of notebooks- generic_metrics, mode_specific_metrics - to lookup for inferred label changes energy_calculations - to lookup for footprint calculation changes
```
(emission) root@31c91ddf8794:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py generic_metrics.ipynb default
/usr/src/app/saved-notebooks/bin/generate_plots.py:30: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if r.status_code is not 200:
About to download config from https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/configs/cortezebikes.nrel-op.json
Successfully downloaded config with version 1 for Cortez 55+ eBike Program and data collection URL https://cortezebikes-openpath.nrel.gov/api/
label_options is unavailable for the dynamic_config in cortezebikes
Running at 2024-10-11T20:12:14.132517+00:00 with args Namespace(plot_notebook='generic_metrics.ipynb', program='default', date=None) for range (
Results:
Charts for cortezebike: |
---|
Note: Everything looks good
Fix for the following:
https://github.com/e-mission/em-public-dashboard/issues/140
Use base_mode to filter out the AIR related trips.
Results:
Before (Using internal label) | After (Using base mode) |
---|---|
Looks identical
Handle Future cleanups mentioned in #152 Changes:
Introduce better exception logging
Type fixed from relecant to relevant.
Refactor extract_co2 and extract_kwh to a single consolidated parameterized function extract_footprint()
Changed the labels for Stacked Bar Chart's Inferred label from "Labeled and Inferred by OpenPATH" to "Inferred from prior labels"