Skip to content

0.5.4

Compare
Choose a tag to compare
@JGreenlee JGreenlee released this 22 Jul 11:26
· 159 commits to master since this release

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