pyFDN.flamo_to_dss#

pyFDN.flamo_to_dss(model)[source]#

Extract the DSS and baked filters from a named FLAMO model.

Returns (dss, filters), where filters maps post_delay, post_matrix and post_output to an SOS bank or None, ready for pyFDN.dss_to_td(*dss, **filters).

The graph must be one pyFDN.assemble_fdn_core() would build: leaves named input_gain and output_gain, plus either mixing_matrix or the standard recursion feedback leaf fB. The delay can be named delay or be the graph’s only delay module.

A hook must hold something that bakes: a per-channel gain or an SOS bank. A hook holding anything else – a nested allpass core, a cascade of several modules – is refused rather than dropped, since the extracted system would render differently from the model it came from. Save such a model whole with pyFDN.save_fdn() instead.

Return type:

tuple[DSS, dict[str, ndarray | None]]