carputils
Doxygen code documentation for the python framework controlling openCARP
Functions
carputils.tests.optlist Namespace Reference

Functions

def option_dict (opts)
 Map a flat [name, value, ...] option list to {name: value}. More...
 

Function Documentation

◆ option_dict()

def carputils.tests.optlist.option_dict (   opts)

Map a flat [name, value, ...] option list to {name: value}.

Valueless flag options, which a model component emits for a field set to None, map to None. Zipping the list in pairs instead would mis-align every option after one.

Parameters
optslist The option list to map.
Returns
dict The option names and their values.