iblrig.tools.static_vars

iblrig.tools.static_vars(**kwargs)[source]

Decorator to add static variables to a function.

This decorator allows you to add static variables to a function by providing keyword arguments. Static variables are shared across all calls to the decorated function.

Parameters:

**kwargs – Keyword arguments where the keys are variable names and the values are the initial values of the static variables.

Returns:

A decorated function with the specified static variables.

Return type:

function