write_output module¶
-
write_output.write_output(time, HRinst, HRavg, btc, filename='assignment02_output.csv')[source]¶ Writes to text file time, instantaneous heart rate, average heart rate over user-specified interval, and when brady- or tachycardia occurred in the ECG trace
Parameters: - time_HRinst – ndarray where first element is times and second element is instantaneous heart rates
- HRavg – list of average heart rates
- btc – list of characters to indicate patient status (– means not enough data, T means tachycardia, B means bradycardia, and N means normal