- class cytoflowgui.workflow.operations.operation_base.IWorkflowOperation(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)¶
An interface that extends a
cytoflowoperation with functions required for GUI support.
In addition to implementing the interface below, another common thing to do in the derived class is to override traits of the underlying class in order to add metadata that controls their handling by the workflow. Currently, relevant metadata include:
apply - This trait is used by the operations
estimate - This trait is used by the operation’s
estimate_result - This trait is set as a result of calling
status - Holds status variables like the number of events from the
transient - A temporary variable (not copied between processes or serialized).
Used to transmit status information back from the operation to the workflow. Set its value to the name of the trait that was changed
- should_apply(changed, payload)¶
Should the owning WorkflowItem apply this operation when certain things change?
Changed.APPLY – the parameters required to run apply() changed
Changed.PREV_RESULT – the previous WorkflowItem’s result changed
Changed.ESTIMATE_RESULT – the results of calling “estimate” changed
should_applyis called from a notification handler, then
eventobject from the notification handler.
- should_clear_estimate(changed, payload)¶
Should the owning WorkflowItem clear the estimated model by calling op.clear_estimate()?
should_clear_estimateis called from a notificaion handler, then
Clear whatever variables hold the results of calling estimate()