wsnsim/auxiliary_functions.py
def inner(*args, **kwargs):
        """Ensures that the value is 0 or positive."""
        value = function(*args, **kwargs)
        if value < 0:
            raise ValueError('Value obtained is negative')
        return value
Ensures that the value is 0 or positive.
Ensures that the value is 0 or positive.
Ensures that the value is 0 or positive .
def inner(*args, **kwargs):
        value = function(*args, **kwargs)
        if value < 0:
            raise ValueError('Value obtained is negative')
        return value
def inner ( * args , ** kwargs ) : value = function ( * args , ** kwargs ) if value < 0 : raise ValueError ( 'Value obtained is negative' ) return value
Ensures that the value is 0 or positive.
Ensures that the value is 0 or positive .
"""Ensures that the value is 0 or positive."""