pyVHR.utils package¶
Submodules¶
pyVHR.utils.ecg module¶
- class pyVHR.utils.ecg.ECGsignal(data, fs, startTime=0)[source]¶
Bases:
object
Manage ECG signals
- getBPM(winsize=5)[source]¶
Compute the BPMs (ECG peaks) by biosppy library
- Returns:
This method returns two variables: a list of BPMs and a list of times (each one correspond to the i-th BPM).
- maxHz = 4.0¶
- minHz = 0.75¶
- nFFT = 16384¶
- step = 1¶
- verb = False¶
pyVHR.utils.elapse module¶
pyVHR.utils.errors module¶
pyVHR.utils.printutils module¶
- pyVHR.utils.printutils.multiplot(x=None, y=None, name=None, zeroMean=True, title='Signal', height=400, width=800)[source]¶
- pyVHR.utils.printutils.printProgressBar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='█', printEnd='\r')[source]¶
Call in a loop to create terminal progress bar @params:
iteration - Required : current iteration (Int) total - Required : total iterations (Int) prefix - Optional : prefix string (Str) suffix - Optional : suffix string (Str) decimals - Optional : positive number of decimals in percent complete (Int) length - Optional : character length of bar (Int) fill - Optional : bar fill character (Str) printEnd - Optional : end character (e.g. “
“, ” “) (Str)