Skip to content

Releases: JGreenlee/e-mission-common

0.6.2

25 Sep 05:45
Compare
Choose a tag to compare
  • 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

17 Sep 21:21
Compare
Choose a tag to compare

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 from metrics_summaries
  • Include uncertainty in footprint_calculations via kwh_uncertain and kg_co2_uncertain

Breaking change:

  • calc_footprint_for_trip now accepts trip and label_options, with optional params mode_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 from user_input of the trip), and labels_map (for unprocessed labels passed in on the phone)

New Contributors

Full Changelog: 0.6.0...0.6.1

0.6.0

27 Aug 16:57
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.5...0.6.0

0.5.5

07 Aug 03:52
Compare
Choose a tag to compare
  • 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

22 Jul 11:26
Compare
Choose a tag to compare

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

11 Jul 18:00
Compare
Choose a tag to compare

0.5.2

31 May 14:24
Compare
Choose a tag to compare

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

24 May 05:03
Compare
Choose a tag to compare

metrics_summaries bugfixes

Full Changelog: 0.5.0...0.5.1

0.5.0

22 May 03:39
Compare
Choose a tag to compare
  • overhaul of metrics_summaries: e-mission/e-mission-server#966 (comment)

    • generate_summaries now needs app config as argument
    • metric_list is now a mapping of metric names to grouping fields instead of just a list of metric names
    • the response can have metrics grouped by any or all of: mode_confirm, purpose_confirm, replaced_mode_confirm, primary_ble_sensed_mode, and survey
  • patch to use either primary_ble_sensed_mode or confirmedMode when evaluating config's showsIf conditions

Full Changelog: 0.4.4...0.5.0

0.4.4

07 May 18:14
Compare
Choose a tag to compare
  • new function in ble_matching.py: primary_ble_sensed_mode_for_trip
  • in package.json, marked this package as ES modules (otherwise, it causes issues with Jest tests on e-mission-phone)

Full Changelog: 0.4.3...0.4.4