e-mission / em-public-dashboard

A simple and stupid public dashboard prototype.
BSD 3-Clause "New" or "Revised" License
1 stars 23 forks source link

Dynamic configs #51

Closed zackAemmer closed 2 years ago

zackAemmer commented 2 years ago

https://github.com/e-mission/e-mission-docs/issues/781

zackAemmer commented 2 years ago

Took a pass through the changes. Everything should be addressed except for the one regarding the data mapping moving to plots.py. For testing: I currently just run the notebooks with different parameters and make sure the outputs in each notebook aren't weird. I can write up some actual tests but that may take longer than just today.

zackAemmer commented 2 years ago

Made figure filenames customized to the mode of interest, changed scaffolding function to be more general and allow argument to add mode of interest text if desired.

zackAemmer commented 2 years ago

All of the following were generated by using generate_plots.py, with the caveat that the replaced mode of interest must be hardcoded to "pilot_ebike" until the database is retroactively updated (otherwise no data loads). The config used is stage-program, using a study config will also fail an assertion since the data currently has replacement labels regardless of study/program.

energy_calculations: sketch_all_mode_CO2impact_2021_11_prepilot sketch_all_mode_CO2impact_2021_11_prepilot.txt

generic_metrics: ntrips_per_day_2021_11_prepilot ntrips_per_day_2021_11_prepilot.txt

mode_specific_metrics: average_miles_replaced_mode_2021_11_prepilot average_miles_replaced_mode_2021_11_prepilot.txt

generic_timeseries: ts_energy_user_2021_11_prepilot ts_energy_user_2021_11_prepilot.txt

mode_specific_timeseries: ts_pilot_ebike_trips_proportion_2021_11_prepilot ts_pilot_ebike_trips_proportion_2021_11_prepilot.txt