kicad2ems.core.sparams

S-parameter post-processing: mixed-mode conversion for differential ports.
kicad2ems.core.sparams.compared(paths, most=4)[source]
Several Touchstone files' figures side by side: dict(names (the
figures, in the first file's order and then the others' own), values
{name: [a number or None per file]}, spread {name: the largest difference
between the files that give it, or None}) from {label: path}.
kicad2ems.core.sparams.figures(path, most=4)[source]
A Touchstone file's figures, to set combinations side by side: the worst
match (S11's highest, dB) and its dip (S11's lowest, dB, and where, GHz) at
each port, and each transmission term's value at the band's centre and its
lowest (dB); ports past `most` left out. {} for a file that cannot be
read.
kicad2ems.core.sparams.fill_reciprocal(S, excite)[source]
Columns of ports that were not excited, from reciprocity (S_ik = S_ki).
Their own reflection and the terms between two unexcited ports stay unknown
(NaN). Returns the list of those ports.
kicad2ems.core.sparams.mixed_mode(S, m)[source]
Single-ended S (ports in m.ports order) -> user ports: diff pairs become
(d, c) modes. Returns S_mm, names, reference impedances.