kicad2ems.core.lines.sections

One section of a line model's drawing, to look at (no Qt here):
LineModel.drawing gives each section the cross-sections it can be seen on
(e['section']), and this solves one when asked. A whole board's sections would
take a minute; one takes about 0.1 s, 2 s at worst.

    modes(e)           # [(key, label)]: the views a section has, the first
                       # the one its numbers come from
    v = solve(e, key)  # v.field (xsection.Field), v.xs, v.volts, v.window,
                       # v.values, v.z0, v.eeff
    x, z, phi, ex, ez, er = v.field.sample(*v.window, 400, 200)

The keys:
    cut         the board's copper across the section, each layer's
                (reference._cut_section)
    classified  the grounded CPW classify found: the strip, its gaps, the plane
    line        a coupled section, its group's strips: this line at 1 V, the
                others at 0
    odd, even   the pair it is in: +1 V and -1 V, +1 V and +1 V
class kicad2ems.core.lines.sections.View(field: kicad2ems.core.lines.xsection.Field, xs: kicad2ems.core.lines.xsection.CrossSection, volts: list, window: tuple, values: dict, z0: float, eeff: float)[source]
kicad2ems.core.lines.sections.modes(e)[source]
[(key, label)] of the views section e has, best first: a coupled pair's
odd mode, else the board's cut.
kicad2ems.core.lines.sections.solve(e, key=None)[source]
The View of section e in mode `key` (default: modes(e)'s first).
ValueError where it has no such view.