mbdlyb_ui.functional.design_for_diagnostics

Copyright (c) 2023 - 2026 TNO-ESI All rights reserved.

Classes

DesignForDiagnosticsPage

Display the design for diagnostics editing page.

DiagnosticProcedureDiagram

Build a Mermaid diagram of a diagnostic procedure.

UIDesignForDiagnosticsData

Hold the design for diagnostics analysis and UI state.

Functions

diagnostic_procedures(data, export_button)

Render diagnostic procedures and diagram export controls.

operating_modes(data)

Display operating mode selections for the design analyzer.

overview(data)

Render the design-for-diagnostics overview table.

signatures(data, filter)

Render the filterable diagnostic signature table.

Module Contents

class mbdlyb_ui.functional.design_for_diagnostics.DesignForDiagnosticsPage(cluster_id: str)

Bases: mbdlyb_ui.functional.base.FunctionalPage

Display the design for diagnostics editing page.

cluster: mbdlyb.functional.gdb.GCluster
data: UIDesignForDiagnosticsData
class mbdlyb_ui.functional.design_for_diagnostics.DiagnosticProcedureDiagram(data: UIDesignForDiagnosticsData, dp_name: str)

Build a Mermaid diagram of a diagnostic procedure.

property diagram: str

Join the generated diagnostic procedure diagram lines.

Returns:

Mermaid source for the diagnostic procedure diagram.

class mbdlyb_ui.functional.design_for_diagnostics.UIDesignForDiagnosticsData(cluster_id: str)

Hold the design for diagnostics analysis and UI state.

async compute(event=None)

Analyze the cluster and refresh diagnostic design results.

Parameters:

event – Optional UI event whose sender is disabled during computation.

static refresh()

Refresh operating modes, signatures, procedures, and overview.

reset()

Clear analysis results and reload the cluster model.

analyzer: mbdlyb.functional.Analyzer | None
cluster: mbdlyb.functional.Cluster
compute_button: nicegui.ui.button
costs_text: str = ''
costs_visible: bool = False
dp_svg: dict[str, str]
dp_to_export: list[str] = []
export_button: nicegui.ui.button
results_available: bool = False
mbdlyb_ui.functional.design_for_diagnostics.diagnostic_procedures(data: UIDesignForDiagnosticsData, export_button: nicegui.ui.button)

Render diagnostic procedures and diagram export controls.

Parameters:
  • data – Design analyzer and procedure diagram export state.

  • export_button – Button used to start diagram export.

mbdlyb_ui.functional.design_for_diagnostics.operating_modes(data: UIDesignForDiagnosticsData)

Display operating mode selections for the design analyzer.

Parameters:

data – Design analyzer and selected operating mode state.

mbdlyb_ui.functional.design_for_diagnostics.overview(data: UIDesignForDiagnosticsData)

Render the design-for-diagnostics overview table.

Parameters:

data – Design analyzer whose procedure overview is displayed.

mbdlyb_ui.functional.design_for_diagnostics.signatures(data: UIDesignForDiagnosticsData, filter: nicegui.ui.input)

Render the filterable diagnostic signature table.

Parameters:
  • data – Design analyzer whose diagnostic signatures are displayed.

  • filter – Filter applied to displayed results.