Skip to content

← Back to handlers

_topology_dispatch

Source: Distributed_Design_Optimizer/postprocess/handlers/_topology_dispatch.py

Unified dispatch registry for topology analyses.

Maps (analysis_type, mode) to (builder_function, output_type) so that TopologyHandler doesn't need to branch on mode itself.

Functions

resolve(analysis: str, mode: str)

Return (build_fn, output_type) for the given analysis/mode pair.

Args:

analysis: Analysis type key (e.g. "master_graph", "clustering").
mode: Either "static" or "dynamic".

Raises:

ValueError: If the combination is unknown.