def energy_units(uom):
    """
    Returns the seed model energy unit corresponding to the green button uom.

    :param uom: int that is the green button uom number corresponding to the
    energy units supported by the green button schema (string args will be
    converted to ints)
    :returns: int in seed.models.ENERGY_UNITS
    """
    uom = int(uom)

    # example data only contains 72 and 169 (Wattt-hours and Therms)
    # currently only support those types

    # uom types
    # Valid values include: 0 = Not Applicable 5 = A (Current) 29 = Voltage
    # 31 = J (Energy joule) 33 = Hz (Frequency) 38 = Real power (Watts)
    # 42 = m3 (Cubic Meter) 61 = VA (Apparent power) 63 = VAr (Reactive power)
    # 65 = Cos? (Power factor) 67 = V^2 (Volts squared) 69 = A^2 (Amp squared)
    # 71 = VAh (Apparent energy) 72 = Real energy (Watt-hours)
    # 73 = VArh (Reactive energy)
    # 106 = Ah (Ampere-hours / Available Charge) 119 = ft3 (Cubic Feet)
    # 122 = ft3/h (Cubic Feet per Hour) 125 = m3/h (Cubic Meter per Hour)
    # 128 = US gl (US Gallons) 129 = US gl/h (US Gallons per Hour)
    # 130 = IMP gl (Imperial Gallons)
    # 131 = IMP gl/h (Imperial Gallons per Hour)
    # 132 = BTU 133 = BTU/h 134 = Liter 137 = L/h (Liters per Hour)
    # 140 = PA(gauge) 155 = PA(absolute) 169 = Therm

    unit_mapping = {
        72: seed.models.WATT_HOURS,
        169: seed.models.THERMS
    }

    if uom in unit_mapping:
        return unit_mapping[uom]
    else:
        return None
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/green_button/xml_importer.py/energy_units/original