finesse.components.workspace.ConnectorMatrixSimulationInfo.add_fill_function

ConnectorMatrixSimulationInfo.add_fill_function(self, callback, bool refill)

This adds a callback function that will be used by the model to fill the matrix elements. This can either be a Python function or cdef wrapped with FillFuncWrapper.

Parameters
callbackCallable or FillFuncWrapper

Callback for fill function

refillboolean

Flags that this fill function will need to be called multiple times during simulation to refill the simulation matrix