MCPcopy Create free account
hub / github.com/NanoComp/meep / when_false

Function when_false

python/simulation.py:5488–5493  ·  view source on GitHub ↗

Given zero or more step functions and a condition function `condition` (a function of no arguments), evaluate the step functions whenever `condition` returns `False`.

(cond, *step_funcs)

Source from the content-addressed store, hash-verified

5486
5487
5488def when_false(cond, *step_funcs):
5489 """
5490 Given zero or more step functions and a condition function `condition` (a function of
5491 no arguments), evaluate the step functions whenever `condition` returns `False`.
5492 """
5493 return _when_true_funcs(lambda: not cond, *step_funcs)
5494
5495
5496def with_prefix(pre, *step_funcs):

Callers

nothing calls this directly

Calls 1

_when_true_funcsFunction · 0.85

Tested by

no test coverage detected