You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These methods can be used to convert between three different
representations of time:
- frame number (i.e., an index into the p_signal or d_signal array)
- elapsed time in microseconds, represented by a datetime.timedelta
object
- absolute date and time, represented by a datetime.datetime object
Each of these methods will accept any of these three representations
as an argument, and convert into the specified representation.
For example, using record 100 (which has a frame frequency of 360 Hz):
>>> r = wfdb.rdrecord('sample-data/100')
>>> r.get_elapsed_time(180)
datetime.timedelta(microseconds=500000)
>>> r.get_frame_number(datetime.timedelta(seconds=0.5))
180.0
0 commit comments