petab_select.handlers

Classes

LimitHandler(current, limit)

A handler for classes that have a limit.

class petab_select.handlers.LimitHandler(current, limit)[source]

A handler for classes that have a limit.

current

A callable to determine the current value.

limit

The upper limit of the current value.

__init__(current, limit)[source]
get_limit()[source]

Get the limit.

Return type:

Union[float, int]

Returns:

The limit.

reached()[source]

Check whether the limit has been reached.

Return type:

bool

set_limit(limit)[source]

Set the limit.

Parameters:

limit (Union[float, int]) – The limit.

Return type:

None