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

Function at_end

python/simulation.py:5131–5143  ·  view source on GitHub ↗

Given zero or more step functions, evaluates them only once, at the end of the run.

(*step_funcs)

Source from the content-addressed store, hash-verified

5129
5130
5131def at_end(*step_funcs):
5132 """
5133 Given zero or more step functions, evaluates them only once, at the end of the run.
5134 """
5135
5136 def _end(sim, todo):
5137 if todo == "finish":
5138 for func in step_funcs:
5139 _eval_step_func(sim, func, "step")
5140 for func in step_funcs:
5141 _eval_step_func(sim, func, "finish")
5142
5143 return _end
5144
5145
5146def at_every(dt, *step_funcs):

Callers 2

_padeMethod · 0.85
_harminvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected