skbio.workflow.Workflow.__call__#
- Workflow.__call__(iter_, success_callback=None, fail_callback=None)[source]#
Operate on all the data.
This is the processing engine of the workflow. Callbacks are executed following applying all workflow methods to an item from
iter_(unlessshort_cicruit=Truein which case method execution for an item is stopped iffailed=True). Callbacks are providedselfwhich allows them to examine any aspect of the workflow.- Parameters:
- iter_iterator
The iterator containing the data to be processed.
- success_callbackmethod, optional
Method to call on a successful item prior to yielding. By default,
self.stateis yielded.- fail_callbackmethod, optional
Method to call on a failed item prior to yielding. By default, failures are ignored.