MCPcopy Create free account

hub / github.com/d6t/d6tflow / functions

Functions422 in github.com/d6t/d6tflow

↓ 117 callersMethodsave
Persist data to target Args: data (dict): data to save. keys are the self.persist keys and values is data
d6tflow/tasks/__init__.py:243
↓ 70 callersMethodoutputLoad
Load output from task with the workflow parameters Args: task (class): task class keys (list): list of data
d6tflow/__init__.py:436
↓ 55 callersMethodinputLoad
Load all or several outputs from task Args: keys (list): list of data to load task (str): if requires multip
d6tflow/tasks/__init__.py:139
↓ 52 callersMethodload
(self, cached=False, **kwargs)
d6tflow/targets/tf.py:7
↓ 39 callersMethodcomplete
``True`` if all of this task's outputs exist.
d6tflow/core.py:289
↓ 33 callersMethodreset
(self, task=None, confirm=False)
d6tflow/__init__.py:503
↓ 31 callersMethodinput
The outputs of the tasks returned by :py:meth:`requires`.
d6tflow/core.py:309
↓ 31 callersMethodoutput
The output Target(s) this task produces. Default: none.
d6tflow/core.py:301
↓ 29 callersMethodrun
(self)
tests/test_main.py:78
↓ 24 callersMethodrun
Run tasks with the workflow parameters. Runs the DAG sequentially in dependency order. Args: tasks (class, list): task c
d6tflow/__init__.py:401
↓ 21 callersMethodget_task
Get task with the workflow parameters Args: task(class) Retuns: An instance of task class with the workflow par
d6tflow/__init__.py:535
↓ 20 callersMethodpreview
Preview task flows with the workflow parameters Args: tasks (class, list): task class or list of tasks class
d6tflow/__init__.py:389
↓ 14 callersMethodget_task
Get task with the workflow parameters for a flow Args: flow (string): The name of the experiment for which the flow is t
d6tflow/__init__.py:783
↓ 13 callersMethodoutputPath
Ouputs the Path given a task Args: task (class): task class Returns: list or dict of all task paths
d6tflow/__init__.py:450
↓ 13 callersMethodrun
(self)
tests/test_workflow.py:11
↓ 11 callersMethodrun
Run tasks with the workflow parameters for a flow. Runs the DAG sequentially in dependency order. Args: flow (string): T
d6tflow/__init__.py:598
↓ 9 callersMethodget_params
Return all ``(name, Parameter)`` pairs for this task, in declaration order.
d6tflow/core.py:150
↓ 9 callersMethodrequires
The Task(s) this task depends on. Default: none.
d6tflow/core.py:305
↓ 8 callersMethod_getpath
(self, k, subdir=True)
d6tflow/tasks/__init__.py:98
↓ 8 callersMethodexists
(self)
d6tflow/core.py:325
↓ 8 callersFunctionflatten
Create a flat list of all items in a structured object (dicts, lists, items):: >>> sorted(flatten({'a': 'foo', 'b': 'bar'})) ['b
d6tflow/core.py:32
↓ 8 callersMethodinvalidate
Reset a task, eg by deleting output file
d6tflow/tasks/__init__.py:56
↓ 8 callersMethodload
Runs a function to load data from storage into memory Args: fun (function): loading function cached (bool):
d6tflow/targets/__init__.py:92
↓ 8 callersMethodmetaSave
(self, data)
d6tflow/tasks/__init__.py:320
↓ 8 callersMethodoutputLoadAll
Load all output from task with the workflow parameters Args: task (class): task class keys (list): list of d
d6tflow/__init__.py:484
↓ 7 callersMethodexists
(self)
d6tflow/targets/__init__.py:26
↓ 7 callersMethodgenerate
Generate output files
d6tflow/__init__.py:863
↓ 7 callersMethodoutput
Output target(s) this task produces
d6tflow/tasks/__init__.py:128
↓ 7 callersMethodoutputLoadMeta
(self, task=None)
d6tflow/__init__.py:478
↓ 7 callersMethodreset
(self, task=None, flow=None, confirm=False)
d6tflow/__init__.py:724
↓ 6 callersMethod_load_meta_from_task
Load metadata from a single task
d6tflow/tasks/__init__.py:294
↓ 6 callersMethodclone
Create a new task instance from this one, overriding some args. Parameters common to this task and ``cls`` are carried over; ``kwarg
d6tflow/core.py:257
↓ 6 callersMethodcomplete
Check if a task is complete by checking if output exists, eg if output file exists
d6tflow/tasks/__init__.py:87
↓ 6 callersMethodreadfile
(self, file_dir)
tests/test_workflow.py:264
↓ 5 callersMethod_make_path_cloud_compatible
Convert path to cloud-compatible path if cloud storage is enabled
d6tflow/tasks/__init__.py:272
↓ 5 callersMethodcomplete
(self, task=None, cascade=True)
d6tflow/__init__.py:472
↓ 5 callersMethodoutputLoad
Load output from task with the workflow parameters for a flow Args: flow (string): The name of the experiment for which
d6tflow/__init__.py:630
↓ 5 callersMethodoutputPath
Ouputs the Path given a task Args: task (class): task class flow (string): The name of the experiment for wh
d6tflow/__init__.py:650
↓ 5 callersMethodrun
The task computation, to be overridden in a subclass.
d6tflow/core.py:317
↓ 5 callersMethodrun
(self)
docs/example.py:8
↓ 4 callersMethod_get_meta_path
(self, task)
d6tflow/tasks/__init__.py:369
↓ 4 callersMethodmetaLoad
(self, key=None)
d6tflow/tasks/__init__.py:329
↓ 4 callersMethodoutput
(self, task=None)
d6tflow/__init__.py:475
↓ 4 callersMethodoutput
(self)
d6tflow/tasks/__init__.py:439
↓ 4 callersMethodreset_upstream
(self, task, confirm=False)
d6tflow/__init__.py:522
↓ 4 callersMethodsave
Runs a function to save data from memory into storage Args: df (obj): data to save fun (function): saving fu
d6tflow/targets/__init__.py:116
↓ 4 callersMethodsaveMeta
(self, data)
d6tflow/tasks/__init__.py:323
↓ 4 callersFunctiontaskflow_upstream
Get all upstream inputs for a task Args: task (obj): task
d6tflow/__init__.py:165
↓ 3 callersMethod_confirm_reset
Helper method to handle confirmation logic for reset operations Args: confirm (bool): whether to ask for confirm
d6tflow/__init__.py:705
↓ 3 callersMethoddfhelper
(self, obj, df_, file)
tests/test_main.py:49
↓ 3 callersMethodget_task_family
The task family (class name) for this class.
d6tflow/core.py:239
↓ 3 callersMethodnormalize
Normalize a parsed/default/constructor value. Identity by default.
d6tflow/parameter.py:90
↓ 3 callersMethodserialize
Convert the value ``x`` to a string. Opposite of :py:meth:`parse`.
d6tflow/parameter.py:86
↓ 2 callersMethod__init__
(self, *args, **kwargs)
d6tflow/core.py:210
↓ 2 callersMethod__init__
(self, task=None, params=None, path=None, env=None)
d6tflow/__init__.py:366
↓ 2 callersMethod__init__
:param default: the default value for this parameter. If not given, a value must be specified when the task is instan
d6tflow/parameter.py:55
↓ 2 callersMethod_attach_to_tasks
(self, tasks, flows=None, path=None)
d6tflow/__init__.py:559
↓ 2 callersMethod_input_load_meta_internal
Internal method to load metadata from input tasks
d6tflow/tasks/__init__.py:307
↓ 2 callersMethod_instantiate
(self, funcs_to_run: list, params=None)
d6tflow/functional.py:192
↓ 2 callersFunction_process
(task)
d6tflow/core.py:475
↓ 2 callersFunction_rmtree_robust
Remove a directory tree, tolerating Windows read-only/locked files. On Windows (esp. OneDrive-synced dirs) shutil.rmtree can raise Permission
tests/test_main.py:10
↓ 2 callersMethod_save_meta_internal
Internal method to save metadata in specified format
d6tflow/tasks/__init__.py:279
↓ 2 callersMethodadd_global_params
Adds params to flow functions. More like declares the params for further use. Parameters ----------
d6tflow/functional.py:208
↓ 2 callersMethodclone_parent
(_self, **kwargs)
d6tflow/core.py:374
↓ 2 callersMethoddelete
Possibly dangerous! `delete(func)` will delete *all files* in the `data/func` directory of the given func. Useful if you want to delete all fu
d6tflow/functional.py:307
↓ 2 callersMethodexists
(self)
d6tflow/targets/__init__.py:77
↓ 2 callersMethodget_param_names
Return parameter names. ``include_significant=True`` returns all params.
d6tflow/core.py:163
↓ 2 callersMethodget_param_values
Resolve parameter values from positional args, kwargs and defaults. :param params: list of ``(param_name, Parameter)`` :para
d6tflow/core.py:168
↓ 2 callersFunctiongetpaths
Map all Tasks in a structured object to their ``.output()``.
d6tflow/core.py:65
↓ 2 callersFunctioninvalidate_upstream
Invalidate all tasks upstream tasks in a flow. For example, you have 3 dependant tasks. Normally you run Task3 but you've changed parameters
d6tflow/__init__.py:229
↓ 2 callersMethodoutputLoad
Loads all or several outputs from flow step. Args: func_to_run: flow step function keys (lis
d6tflow/functional.py:225
↓ 2 callersMethodoutputLoadAll
Load all output from task with the workflow parameters for a flow Args: flow (string): The name of the experiment for wh
d6tflow/__init__.py:685
↓ 2 callersMethodoutputLoadMetaJson
(self, task=None)
d6tflow/__init__.py:481
↓ 2 callersFunctionpreview
Preview task flows Args: tasks (obj, list): task or list of tasks
d6tflow/__init__.py:72
↓ 2 callersMethodpreview
Preview task flows with the workflow parameters for a flow Args: flow (string): The name of the experiment for which the
d6tflow/__init__.py:754
↓ 2 callersMethodrun
(self)
tests/test_main.py:497
↓ 2 callersMethodset_default
Set default task for the workflow object Args: task(obj) The task to be set as a default task
d6tflow/__init__.py:526
↓ 2 callersMethodto_str_params
Convert parameters to a ``{name: serialized_value}`` dict. :param bool only_significant: only include parameters marked significant.
d6tflow/core.py:243
↓ 1 callersMethod__init__
(self, path=None)
d6tflow/targets/__init__.py:21
↓ 1 callersFunction_drive_generator
(gen)
d6tflow/core.py:531
↓ 1 callersFunction_get_task_requires
(task)
d6tflow/core.py:417
↓ 1 callersMethod_get_tasks
(self)
d6tflow/__init__.py:936
↓ 1 callersMethod_invalidate_meta
(self)
d6tflow/tasks/__init__.py:75
↓ 1 callersMethod_module_from_file
(self, module_name, file_path)
d6tflow/__init__.py:944
↓ 1 callersMethod_update_params_used
(self, funcs, params)
d6tflow/functional.py:201
↓ 1 callersMethodattach_flow
(self, flow=None, flow_name="flow")
d6tflow/__init__.py:552
↓ 1 callersMethodclone_parents
(_self, **kwargs)
d6tflow/core.py:378
↓ 1 callersMethodclone_parents_dict
(_self, **kwargs)
d6tflow/__init__.py:317
↓ 1 callersMethoddeleteAll
Possibly dangerous! Will delete all files in the `data/` directory of the functions attached to the workflow object. Useful if you want to del
d6tflow/functional.py:320
↓ 1 callersMethoddf2fun
(task)
tests/test_main.py:81
↓ 1 callersFunctiondfs_paths
Yield tasks on every dependency path from ``start_task`` to ``goal_task_family``.
d6tflow/core.py:421
↓ 1 callersFunctionenable_cloud_storage
Initialize cloud storage Uses https://github.com/orgs/fsspec/repositories Args: protocol (str): fsspec eg gcs, s3, dropbox etc.
d6tflow/__init__.py:37
↓ 1 callersMethodhas_task_value
Whether a default value is available.
d6tflow/parameter.py:72
↓ 1 callersMethodinvalidate
(self, confirm=True)
d6tflow/tasks/__init__.py:525
↓ 1 callersFunctioninvalidate_downstream
Invalidate all downstream tasks in a flow. For example, you have 3 dependant tasks. Normally you run Task3 but you've changed parameters for
d6tflow/__init__.py:257
↓ 1 callersMethodoutputLoad
Load all or several outputs from task Args: keys (list): list of data to load as_dict (bool): cache data in
d6tflow/tasks/__init__.py:196
↓ 1 callersMethodoutputLoadAllMeta
(self)
d6tflow/tasks/__init__.py:355
↓ 1 callersMethodoutputLoadMeta
(self)
d6tflow/tasks/__init__.py:335
↓ 1 callersMethodparse
Parse a ``bool`` from the string, matching 'true'/'false' case-insensitively.
d6tflow/parameter.py:119
↓ 1 callersMethodrequires
(_self)
d6tflow/__init__.py:339
next →1–100 of 422, ranked by callers