kicad2ems.gui.curves¶
The curves of the analyses that are not S-parameters, for the Results page (no
Qt here: testable without a display).
sets = load_sets(folder) # a result's curve sets, as its analysis gives
# them (Analysis.curves: a rail's |Z| each load
# sees, a near field's spectrum, a circuit's
# waveforms)
cs = load_curves(folder) # the first of them, or None
value_at(curve, x) # a curve's value at x (cursor, markers),
# interpolated along its axes' scales
export_csv(path, sets) # every curve of some sets, one x column per run
A CurveSet is one run's curves with how to draw them (titles, log axes); its
curves' roles say what each is: 'data' (a result), 'reference' (what it is
compared with in the same run: the bare planes) or 'limit' (a target line). The
Results page knows nothing of the analyses: which one a folder is of, and its
curves, come from kicad2ems's registry.
- class kicad2ems.gui.curves.Curve(name: str, x: numpy.ndarray, y: numpy.ndarray, role: str = 'data', unit: str = '')[source]¶
- class kicad2ems.gui.curves.CurveSet(kind: str, title: str, xlabel: str, ylabel: str, curves: list = <factory>, logx: bool = True, logy: bool = True, folder: str = '', label: str = '', info: str = '')[source]¶
- kicad2ems.gui.curves.curve_set(d, kind, folder='')[source]¶
A curve set as an analysis gives it (a dict: Analysis.curves) as a CurveSet.
- kicad2ems.gui.curves.export_csv(path, sets)[source]¶
Every data and reference curve of the sets: per run, its x then its curves (runs side by side, a shorter one padded).
- kicad2ems.gui.curves.load_sets(folder)[source]¶
The curve sets of a results folder, from the analysis whose result it holds; []: none there, not an analysis's, or not readable.