Releases: JGreenlee/e-mission-common
0.6.4
What's Changed
- add auth.opcode.py with 'generate_random_string' fn by @JGreenlee in #14
Full Changelog: 0.6.3...0.6.4
0.6.3
What's Changed
unit-test
GitHub Actions workflow by @jpfleischer in #9- Fix egrid data if name not in properties by @jpfleischer in #10
- Fixes for
run_jest.sh
on GH Actions and JS compatibility by @JGreenlee in #11
New Contributors
- @jpfleischer made their first contribution in #9
Full Changelog: 0.6.2...0.6.3
0.6.2
- fix unprocessed trips not being used for footprint metrics
- fix typo in ntd.ipynb and update intensities JSONs
Full Changelog: 0.6.1...0.6.2
0.6.1
What's Changed
- Added in translations to label options by @louisg1337 in #6
- Slightly refactored deduped to support different parameters by @louisg1337 in #7
- Update Emissions Constants for by @Abby-Wheelis in #3
- Add
footprint
to the metrics generated frommetrics_summaries
- Include uncertainty in
footprint_calculations
viakwh_uncertain
andkg_co2_uncertain
Breaking change:
calc_footprint_for_trip
now acceptstrip
andlabel_options
, with optional paramsmode_key
(defaults to 'mode' but can also be 'replaced_mode'),mode_value
(e.g.'car'
,'bus'
if you do not want to use the labels fromuser_input
of the trip), andlabels_map
(for unprocessed labels passed in on the phone)
New Contributors
- @Abby-Wheelis made their first contribution in #3
Full Changelog: 0.6.0...0.6.1
0.6.0
What's Changed
- NTD Transit Data Integration by @louisg1337 in #2
- Public Dashboard Base Mode Integration by @louisg1337 in #5
Full Changelog: 0.5.5...0.6.0
0.5.5
- add
base_modes.get_rich_mode
function - initial draft of footprint calculations
- set up npm package to expose .d.ts (Typescript declaration) files for better IDE autocompletion / IntelliSense
- enhanced scripts, updated .gitignore
- updated README
Full Changelog: 0.5.4...0.5.5
0.5.4
What's Changed
-
Unified base mode colors and helper function by @louisg1337 in #1
-
add 'footprint_calculations'
Functions for calculating the estimated footprint of a trip, both in terms of
energy usage (kwh) and carbon emissions (kg_co2).
e-mission/e-mission-docs#954 -
expand base modes to include "met" and "footprint"
Up to now, we've had base modes only for the purpose of having a designated color and icon for any rich modes that get defined.
All of the MET and carbon footprint info was defined for each and every rich mode (in the label-options JSON)
Now, base modes will have a base "met" and "footprint".
The mets are copied over from what was in e-mission-phone (reformatted to Python).
Rich modes previously had a 'kgCo2PerKm' value. As part of the effort to de-couple energy calculations from carbon calculations (e-mission/e-mission-docs#954), this is replaced by a 'footprint' field, which has energy intensities broken down by fuel type. For transit, we describe the mapping to mode(s) in the NTD.
Rich modes can still override "footprint" or "met", or any of these properties.
It will no longer be necessary to include "met_equivalent" in rich modes. If "met" is not present, it will be implied as being the met of the base mode.
Now our "base modes" and "rich modes" line up better and we can describe it as an inheritance pattern. -
cleanup / removed unneeded files
Full Changelog: 0.5.3...0.5.4
0.5.3
0.5.2
0.5.2: patch to filter 'untracked' composite_trips correctly
Flattening and filtering in one step caused a key error because 'origin_key' may not be present at the root level until flattening has been done.
So it is necessary to flatten first, then filter.
Also updated variable names and comments to reflect that the list of trips passed into generate_summaries can be either composite or confirmed trips. After filtering, we can treat them all as confirmed trips, so the types of the other functions' arguments should be named as confirmed trips.
Full Changelog: 0.5.1...0.5.2
0.5.1
metrics_summaries
bugfixes
Full Changelog: 0.5.0...0.5.1