Usually working_data['peaklist'] is returned as a list. However, if there is a peak in the first 150ms of the trace, it is removed in calc_rr(). As a result of this, working_data['peaklist'] is overwritten by an np.array.
First commit always overwrites working_data['peaklist'] with np.array which is consistent with most other values in working_data.
Second commit is more optional: It also converts RR_masklist and RR_list_cor into np.array for consistency. Only RR_indices remains a list of tuples.
Usually
working_data['peaklist']
is returned as a list. However, if there is a peak in the first 150ms of the trace, it is removed incalc_rr()
. As a result of this,working_data['peaklist']
is overwritten by an np.array.First commit always overwrites
working_data['peaklist']
with np.array which is consistent with most other values inworking_data
. Second commit is more optional: It also convertsRR_masklist
andRR_list_cor
into np.array for consistency. OnlyRR_indices
remains a list of tuples.Fixes #82