parameters: (pb_resp)
docstring: update journey.co2_emission.value
docstring_summary: update journey.co2_emission.value
docstring_tokens: update journey . co2_emission . value
function: def update_total_co2_emission(pb_resp):
      """
      update journey.co2_emission.value
      """
      if not pb_resp.journeys:
          return
      for j in pb_resp.journeys:
          j.co2_emission.value = sum(s.co2_emission.value for s in j.sections)
function_tokens: def update_total_co2_emission ( pb_resp ) : if not pb_resp . journeys : return for j in pb_resp . journeys : j . co2_emission . value = sum ( s . co2_emission . value for s in j . sections )