finesse.detectors.workspace.OutputFuncWrapper
¶
Overview
- class finesse.detectors.workspace.OutputFuncWrapper¶
Bases:
object
Helper class for wrapping a C fill function that can be referenced from Python by objects. This allows a direct C call to the function from other cdef functions.
Examples
Create a C function then wrap it using this class:
>>> cdef void c_output(DetectorWorkspace ptr_ws): >>> cdef PDWorkspace ws = <PDWorkspace>ptr_ws >>> ... >>> >>> fill = OutputFuncWrapper.make_from_ptr(c_fill)