Batch

class lightworks.Batch(task: Task | None = None, task_args: list[list[Any]] | None = None, task_kwargs: dict[str, list[Any]] | None = None, parameters: dict[Parameter[Any], list[Any]] | None = None)

Allows for batch submission of jobs with varied parameters on each run.

add(task: Task) None

Allows for tasks to be manually added to the BatchTask.

property num: int

Returns number of tasks in batch.

property tasks: list[Task]

Returns all tasks contained in batch.