finesse.simulations.workspace.ABCDWorkspace.set_gouy_function

ABCDWorkspace.set_gouy_function(self, callback)

Sets the callback function that will be used by the model to compute the gouy phase terms for an element. This can either be a Python function or cdef wrapped with GouyFuncWrapper.

Parameters
callbackfunction or GouyFuncWrapper

The callback function that computes the gouy phase terms for an element. It can be either a Python function or a cdef wrapped function.