Skip to main content

parse_sweep

Function parse_sweep 

Source
pub fn parse_sweep(text: &str) -> Result<Vec<SweepPoint>, TraceError>
Expand description

A frequency response as sim-cli sweep writes it: the columns frequency_hz and gain_rad_s_per_nm. A phase is not read; the fit does not use it. A frequency that is not finite and above zero is refused, as sweep refuses it: before, a file with 0 Hz in it got past to the fit, and was refused only when it had a dip.