pdstools.decision_analyzer.stage_grouping¶
Canonical NBAD pipeline hierarchy with user-friendly display names.
Maps internal stage group names (Stage_pyStageGroup) and stage names
(Stage_pyName) to the display names shown in the Pega application.
If a value from the data has no entry here, get_display_name falls back
to the raw value so future pipeline stages are handled gracefully.
Attributes¶
Classes¶
dict() -> new empty dictionary |
Functions¶
|
Return the display name for a stage group, or |
|
Return the display name for a stage, or |
|
Return the display name for a stage group or stage. |
|
Return the internal stage group name for a given internal stage name. |
Module Contents¶
- class StageGroupDef¶
Bases:
TypedDictdict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- NBAD_PIPELINE: dict[str, StageGroupDef]¶
- get_stage_group_display_name(internal_name: str) str¶
Return the display name for a stage group, or
internal_nameif not found.
- get_stage_display_name(internal_name: str) str¶
Return the display name for a stage, or
internal_nameif not found.
- get_display_name(internal_name: str) str¶
Return the display name for a stage group or stage.
Checks stage groups first, then stages. Returns
internal_nameif no mapping exists — ensuring forward compatibility with new pipeline stages.
- get_stage_group_for_stage(stage_name: str) str | None¶
Return the internal stage group name for a given internal stage name.
Returns
Noneif the stage is not found. Both the input and the return value are internal names (pre-transformation). After data transformation the stage-to-group relationship is read directly from the data.