modelx.get_recursion#

get_recursion()[source]#

Get the current formula recursion limit.

Returns the maximum depth allowed for formula call chains, as set by set_recursion().

Returns:

Current maximum recursion depth for formulas.

Return type:

int

Example

>>> import modelx as mx
>>> mx.get_recursion()
1000
>>> mx.set_recursion(2000)
>>> mx.get_recursion()
2000

See also