TimerParam.is_time#

TimerParam.is_time(dae_t)[source]#

Element-wise check if the DAE time is the same as the parameter value. The current implementation uses np.equal.

Parameters:
dae_tfloat

Current simulation time

Returns:
np.ndarray

The array containing the truth value of if the DAE time is close to the parameter value.

Notes

The previous implementation with np.isclose with default rtol=1e-5 mistakes the immediate pre- and post-event time as in-event when simulation time is greater than 10.