kicad2ems.mom25d.linecache

mom25d.linecache - the wave ports' line characterisations (sim.line_char_xs,
sim.line_char_pair) kept on disk by their cross-section, so that a board run
again does not solve its feeds' lines again: on tests/boards/launch.json they
are 14.4 s of a 14.6 s set-up, at every run (R-D10).

    MOM25D_CACHE  the folder (default: $XDG_CACHE_HOME/mom25d, else
                  ~/.cache/mom25d); 'off': nothing kept

    out, kept = cached('xs', stack, dict(layer=.., w=.., ...),
                       lambda: line_char_xs(...))

An entry's key is the stack (each layer's h, er, tan d and fref; the covers),
what the call was given and a digest of mom25d's own code (its modules and
compiled core): a change to any of them solves the line again. A cache that
cannot be read or written is no cache (the line is solved).
kicad2ems.mom25d.linecache.cached(kind, stack, args, solve)[source]
(solve()'s tuple of arrays, whether it was kept from before): kept under
(kind, the stack, args).
kicad2ems.mom25d.linecache.code()[source]
A digest of mom25d's own modules and compiled core: what solved a kept
line.
kicad2ems.mom25d.linecache.folder()[source]
Where the lines are kept, or None (MOM25D_CACHE=off).