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

Function _when_true_funcs

python/simulation.py:5061–5067  ·  view source on GitHub ↗
(cond, *step_funcs)

Source from the content-addressed store, hash-verified

5059
5060
5061def _when_true_funcs(cond, *step_funcs):
5062 def _true(sim, todo):
5063 if todo == "finish" or cond(sim):
5064 for f in step_funcs:
5065 _eval_step_func(sim, f, todo)
5066
5067 return _true
5068
5069
5070# Public step functions

Callers 4

after_timeFunction · 0.85
before_timeFunction · 0.85
when_trueFunction · 0.85
when_falseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected