stilt.execution.task_share#

stilt.execution.task_share(receptor_ids, task, n_tasks)[source]#

Return task task’s share of receptor_ids, split n_tasks ways.

The share is every n_tasks-th receptor, starting at task, which runs from 0 to n_tasks - 1 as the index of a job array does.

Raises:

ValueError – If task is not from 0 to n_tasks - 1.

Return type:

list[str]

Parameters: