fn callback(
observer: GridObserverWrapper<'_>,
callback: PyObject,
finalize: Option<bool>
) -> SystemWrapper
Expand description
callback(observer, callback, finalize=True)
Takes a grid observer and passes its output to a Python function
Parameters
observer - a grid observer to get data from the model
callback - a Python function accepting the grids as a list of NumPy arrays and an optional no-data value
finalize - whether callback
is invoked only after the last time step