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

Function _true

python/simulation.py:5062–5065  ·  view source on GitHub ↗
(sim, todo)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_eval_step_funcFunction · 0.85

Tested by

no test coverage detected