buffalo_panel.app.tui.SimulationDataManager

class buffalo_panel.app.tui.SimulationDataManager(data)[source]

Encapsulates raw data manipulation and validation logic.

This class decouples the TUI widgets from the underlying dictionary traversal and schema validation.

Methods

airfoil_entry_type(path)

Return the airfoil family for one airfoil-entry path.

apply_airfoil_mapping(path, new_mapping)

Replace one airfoil mapping and validate the full case payload.

coerce_value(value_text, schema)

Coerce input text to the strictest scalar type allowed by schema.

get_value(path)

Return the current simulation value at path.

is_airfoil_source_path(path)

Return whether one path targets the synthetic source field.

is_branch_value(value)

Return whether one value should render as a branch node.

set_value(path, value)

Update one scalar field and validate the full case mapping.

get_value(path)[source]

Return the current simulation value at path.

Return type:

SimulationValue

set_value(path, value)[source]

Update one scalar field and validate the full case mapping.

static coerce_value(value_text, schema)[source]

Coerce input text to the strictest scalar type allowed by schema.

Return type:

SimulationScalar

static is_airfoil_source_path(path)[source]

Return whether one path targets the synthetic source field.

Return type:

bool

airfoil_entry_type(path)[source]

Return the airfoil family for one airfoil-entry path.

Return type:

str | None

apply_airfoil_mapping(path, new_mapping)[source]

Replace one airfoil mapping and validate the full case payload.

static is_branch_value(value)[source]

Return whether one value should render as a branch node.

Return type:

bool