upxo.meshing.gbconformant.pipeline.advice module
What to try when a stage fails: settings that bear on the failure it reported.
Each rule names a stage (or any), a pattern in the error text, and the settings to change. The advice only proposes; nothing changes unless the person applies it. A proposal is dropped when the setting already has the proposed value.
- class upxo.meshing.gbconformant.pipeline.advice.Suggestion(setting: str | None, value: Any, why: str)[source]
Bases:
objectOne proposed change;
settingisNonefor a hint that is not a setting.
- upxo.meshing.gbconformant.pipeline.advice.suggest(stage_id: str, error: str, config: dict) list[Suggestion][source]
The changes worth trying after
stage_idfailed witherror(an empty list when nothing is known).
- upxo.meshing.gbconformant.pipeline.advice.apply_suggestion(config: dict, suggestion: Suggestion) None[source]
Make the change (the caller invalidates the stages that depend on it).