check_time¶
- empymod.utils.check_time(time, signal, ft, ftarg, verb)[source]¶
Check time domain specific input 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{None, 0, 1, -1}
Source signal:
None: Frequency-domain response
-1 : Switch-off time-domain response
0 : Impulse time-domain response
+1 : Switch-on time-domain response
- ft{‘dlf’, ‘qwe’, ‘fftlog’, ‘fft’}
Flag for Fourier transform.
- ftargdict
Arguments of Fourier transform; depends on the value for ft.
- verb{0, 1, 2, 3, 4}
Level of verbosity.
- Returns
- timefloat
Time, checked for size and assured min_time.
- freqfloat
Frequencies required for given times and ft-settings.
- ft, ftarg
Checked if valid and set to defaults if not provided, checked with signal.