bilby.core.utils.counter.Counter

class bilby.core.utils.counter.Counter(initval=0)[source]

Bases: object

General class to count number of times a function is Called, returns total number of function calls

Parameters:
initalvalint, 0
number to start counting from
__init__(initval=0)[source]
__call__(*args, **kwargs)

Call self as a function.

Methods

__init__([initval])

increment()

Attributes

value