memilio.epidata.defaultDict

defaultDict.py

Defines global parameter, lists and dictionaries

Dictionaries define values which are globally used and should be everywhere the same

  • defaultDict defined default values for the function parameter

This dictionary ensures that in case of calling the functions and of calling the console scripts the default values are the same

Functions

invert_dict(dict_to_invert)

Inverts the roles of keys and values of dictionary to create a new dictionary where the previous keys are the values and vice versa.

memilio.epidata.defaultDict.invert_dict(dict_to_invert)

Inverts the roles of keys and values of dictionary to create a new dictionary where the previous keys are the values and vice versa.

Parameters:

dict_to_invert – Dictionary.

Returns:

Inverted dictionary.