dispel.io.flags module
Functions to manage flags when generating measure export.
-
dispel.io.flags.format_all_flags(reading)[source]
Format all flag inside a reading into a usable format.
- Parameters:
reading (Reading) –
- Return type:
Dict[str, Any]
-
dispel.io.flags.format_flag(flag_object)[source]
Format flags objects into a string format to add to the json.
- Parameters:
flag_object (FlagMixIn) –
- Return type:
List
-
dispel.io.flags.merge_flags(flags)[source]
Merge multiple flags in a dictionary.
- Parameters:
flags (Iterable[Flag]) – An iterable of flags.
- Returns:
A dictionary regrouping the provided flags by id and reason.
- Return type:
Dict[str, str]