pyFDN.flamo_model_to_nodes#
- pyFDN.flamo_model_to_nodes(model, name='root', *, include_shell_io=False)[source]#
Traverse a FLAMO model and build a tree of nodes (nested dicts).
Each node has: - type: “Shell” | “Series” | “Parallel” | “Recursion” | “Leaf” - name: str (from parent’s dict key or assigned) - module: the raw FLAMO module (for Leaf, the actual dsp module) - children: list of child nodes (for Series, Parallel; order preserved) - fF, fB: only for Recursion — nodes for forward and feedback path - input_layer, output_layer: only if include_shell_io and type is Shell
- Parameters:
- Returns:
node – Root node (nested tree). Use flamo_nodes_flat() to get a list of all nodes.
- Return type: