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: object

One proposed change; setting is None for a hint that is not a setting.

setting: str | None
value: Any
why: str
property stage: str | None

The first stage whose results depend on the setting (a change restarts from there).

text() → str[source]
upxo.meshing.gbconformant.pipeline.advice.suggest(stage_id: str, error: str, config: dict) → list[Suggestion][source]

The changes worth trying after stage_id failed with error (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).