Skip to main content

parse_multinetwork

Function parse_multinetwork 

Source
pub fn parse_multinetwork(
    source: Source,
) -> Result<PioModule<TimeSeries<MulticonductorNetwork>>, Error>
Expand description

Parse a PMD multinetwork ENGINEERING document into one MulticonductorNetwork per time step. Time points follow the document’s mn_lookup times, are labeled by their nw keys, and carry each step’s time_elapsed as their duration. The source is retained on the module, so a same format emission echoes the input bytes.

§Errors

The document is not JSON, not the ENGINEERING model, not a multinetwork document, or holds no time step. The failure carries the reader’s findings and retains the source.