neofoam.framework.decorator

Decorators for marking functions as operations or conditions.

neofoam.framework.decorator.condition(_func: F | None = None, operation_number: OperationNumber | int | None = None, depends_on: list[str] | None = None) F | Callable[[F], F][source]

decorator Factory to mark a decorator to mark a function as a condition in the workflow.

neofoam.framework.decorator.operation(_func: F | None = None, operation_number: OperationNumber | int | None = None, depends_on: list[str] | None = None) F | Callable[[F], F][source]

decorator Factory to mark a decorator to mark a function as an operation in the workflow.