How to quickly measure the rise time of a signal represented inside a numpy array
I have a numpy array called voltage
which is supposed to go from 0 to 1, in 1ps time steps. Thing is some times it may not go from 0 to 1, it might rise from zero and come back to 1.
I want to measure the rise time, time taken to go from 0 to 0.9, if the voltage is coming back to 0 or close to zero, lets say below 0.5, I want to mark it as a failure by marking rise time as -1.