kicad2ems.core.parity

Parity: what a solver holds, read back from its native model, against the board
- minus what it declared. A solver may approximate the board, but it must say
so: any difference it did not declare is a finding.

    devs = solver.deviations(job, prep)  # [solvers.Deviation], by the solver's
                                         # own rules
    rb = solver.readback(job, prep)      # what its native model holds (None: no
                                         # readback)
    problems = check(job.m, rb, devs)    # [] when every difference was declared

Compared: every via (position, radius, the heights it spans), edge walls, copper
area per layer, the elements of each lumped part, the ports. A declared
deviation changes what is expected: a via moved to `to`, an item `dropped`, vias
`added` for it (edge walls as via rows), copper `area` added on a `layer`, a
part made of `to` elements.
kicad2ems.core.parity.check(m, rb, devs)[source]
The undeclared differences between the board m and a solver's readback rb
(see the module).
kicad2ems.core.parity.describe(devs)[source]
One line per kind of deviation: 'vias: moved onto the mesh (22, up to
0.064 mm)'.