exopy.tasks.tasks.logic.loop_exceptions_tasks module

Tasks used to modify the execution of a loop.

class exopy.tasks.tasks.logic.loop_exceptions_tasks.BreakTask[source]

Bases: exopy.tasks.tasks.base_tasks.SimpleTask

Task breaking out of a loop when a condition is met.

See Python break statement documenttaion.

condition

Condition under which to perform the break.

parallel

Never run this task in parallel.

check(*args, **kwargs)[source]

Check that the parent makes sense

perform()[source]

If the condition evaluates to true, break from the loop.

class exopy.tasks.tasks.logic.loop_exceptions_tasks.ContinueTask[source]

Bases: exopy.tasks.tasks.base_tasks.SimpleTask

Task jumping to next loop iteration when a condition is met.

See Python continue statement documenttaion.

condition

Condition under which to continue.

parallel

Never run this task in parallel.

check(*args, **kwargs)[source]

Check that the parent makes sense

perform()[source]

“If the condition evaluates to true, continue.