check_time_only#

empymod.utils.check_time_only(time, signal, verb, new=False)[source]#

Check time and signal parameters.

This check-function is called from one of the modelling routines in empymod.model. Consult these modelling routines for a detailed description of the input parameters.

Parameters:
timearray_like

Times t (s).

signal{-1, 0, 1, dict}

Source signal:

  • -1 : Switch-off time-domain response

  • 0 : Impulse time-domain response

  • +1 : Switch-on time-domain response

  • dict : Arbitrary waveform

verb{0, 1, 2, 3, 4}

Level of verbosity.

newbool, default=False

For backwards compatibility.

Returns:
timefloat

Time, checked for size and assured min_time.

signal

Signal, checked for input and with waveform function, if applicable. Only returned if new=True.