◆ __init__()
def fiftyone_pipeline_core.flowdata.FlowData.__init__ | ( | self, | |
pipeline | |||
) |
\r\n
FlowData is created by a specific Pipeline It collects evidence set by the user It passes evidence to FlowElements in the Pipeline These elements can return ElementData or populate an errors object.
def | __init__ (self, pipeline) |
def | process (self)
Runs the process function on every attached flowElement allowing data to be changed based on evidence. More...
|
def | get_from_element (self, flow_element)
Retrieve data by FlowElement object. More...
|
def | get (self, flow_element_key)
Retrieve data by flowElement key. More...
|
def | __getattr__ (self, flow_element_key)
Magic getter to allow retrieval of data from FlowData.data[flowElementKey] by flowElement name. More...
|
def | __getitem__ (self, flow_element_key)
Magic method in Python, which when used in a class, allows its instances to use the [] (indexer) operators. More...
|
def | set_element_data (self, element_data)
Set data (used by flowElement) within FlowData.data. More...
|
def | set_error (self, flow_error)
Set error (should be keyed by flowElement datakey) More...
|
def | get_evidence_datakey (self)
Get a list of evidence stored in the flowdata, filtered by its flowElements' evidenceKeyFilters. More...
|
def | stop (self)
Stop processing any subsequent flowElements. More...
|
def | get_where (self, metakey, metavalue)
Get data from flowElement based on property meta data. More...
|
def fiftyone_pipeline_core.flowdata.FlowData.__init__ | ( | self, | |
pipeline | |||
) |
def fiftyone_pipeline_core.flowdata.FlowData.__getattr__ | ( | self, | |
flow_element_key | |||
) |
Magic getter to allow retrieval of data from FlowData.data[flowElementKey] by flowElement name.
For example, instead of flowdata.get("device")
you can use flowdata.device
@type flow_element_key: string
@rtype: ElementData
def fiftyone_pipeline_core.flowdata.FlowData.__getitem__ | ( | self, | |
flow_element_key | |||
) |
Magic method in Python, which when used in a class, allows its instances to use the [] (indexer) operators.
For example, instead of flowdata.get("device")
you can use flowdata["device"]
@type flow_element_key: string
@rtype: ElementData
def fiftyone_pipeline_core.flowdata.FlowData.get | ( | self, | |
flow_element_key | |||
) |
Retrieve data by flowElement key.
Called by FlowData.get_from_element method.
@type flow_element_key: string
@rtype: ElementData
def fiftyone_pipeline_core.flowdata.FlowData.get_evidence_datakey | ( | self | ) |
Get a list of evidence stored in the flowdata, filtered by its flowElements' evidenceKeyFilters.
@rtype: list
def fiftyone_pipeline_core.flowdata.FlowData.get_from_element | ( | self, | |
flow_element | |||
) |
Retrieve data by FlowElement object.
@type flow_element: FlowElement
@rtype: ElementData
def fiftyone_pipeline_core.flowdata.FlowData.get_where | ( | self, | |
metakey, | |||
metavalue | |||
) |
Get data from flowElement based on property meta data.
@type metakey: str
@type metavalue: mixed
@rtype: dict
def fiftyone_pipeline_core.flowdata.FlowData.set_element_data | ( | self, | |
element_data | |||
) |
Set data (used by flowElement) within FlowData.data.
@type element_data: ElementData
def fiftyone_pipeline_core.flowdata.FlowData.set_error | ( | self, | |
flow_error | |||
) |
Set error (should be keyed by flowElement datakey)
@type error: FlowError
def fiftyone_pipeline_core.flowdata.FlowData.stop | ( | self | ) |
Stop processing any subsequent flowElements.
fiftyone_pipeline_core.flowdata.FlowData.data |
fiftyone_pipeline_core.flowdata.FlowData.errors |
fiftyone_pipeline_core.flowdata.FlowData.evidence |
fiftyone_pipeline_core.flowdata.FlowData.pipeline |
fiftyone_pipeline_core.flowdata.FlowData.processed |
fiftyone_pipeline_core.flowdata.FlowData.stopped |