matflow.InputSource#
- class matflow.InputSource(source_type, import_ref=None, task_ref=None, task_source_type=None, element_iters=None, path=None, where=None)#
Bases:
InputSource
Methods
If source_type is task, then return the referenced task from the given workflow.
Check if this input source is in a list of other input sources, without considering the element_iters and where attributes.
Attributes
- Parameters:
where (Optional[Union[dict, app.Rule, List[dict], List[app.Rule], app.ElementFilter]]) –
- app = App(name='MatFlow', version='0.3.0a129')#
- classmethod default()#
- classmethod from_json_like(json_like, shared_data=None)#
- classmethod from_string(str_defn)#
- get_task(workflow)#
If source_type is task, then return the referenced task from the given workflow.
- classmethod import_(import_ref, element_iters=None, where=None)#
- is_in(other_input_sources)#
Check if this input source is in a list of other input sources, without considering the element_iters and where attributes.
- Parameters:
other_input_sources (List[InputSource]) –
- Return type:
None | int
- classmethod local()#
- classmethod task(task_ref, task_source_type=None, element_iters=None, where=None)#
- to_dict()#
- to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
- to_string()#