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

Function after_sources

python/simulation.py:5073–5085  ·  view source on GitHub ↗

Given zero or more step functions, evaluates them only for times after all of the sources have turned off.

(*step_funcs)

Source from the content-addressed store, hash-verified

5071
5072
5073def after_sources(*step_funcs):
5074 """
5075 Given zero or more step functions, evaluates them only for times after all of the
5076 sources have turned off.
5077 """
5078
5079 def _after_sources(sim, todo):
5080 time = sim.fields.last_source_time()
5081 if sim.round_time() >= time:
5082 for func in step_funcs:
5083 _eval_step_func(sim, func, todo)
5084
5085 return _after_sources
5086
5087
5088def after_sources_and_time(t, *step_funcs):

Callers 1

run_k_pointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected