Skip to content

Commit

Permalink
Correct fSQI inputs
Browse files Browse the repository at this point in the history
The default fSQI inputs in quality_ecg were empty lists, which caused the program to stop
  • Loading branch information
sofia3ms committed Jan 18, 2024
1 parent 2e73c30 commit 74970a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biosppy/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def quality_eda(x=None, methods=['bottcher'], sampling_rate=None):

def quality_ecg(segment, methods=['Level3'], sampling_rate=None,
fisher=True, f_thr=0.01, threshold=0.9, bit=0,
nseg=1024, num_spectrum=[], dem_spectrum=[],
nseg=1024, num_spectrum=[5, 20], dem_spectrum=None,
mode_fsqi='simple'):

"""Compute the quality index for one ECG segment.
Expand All @@ -76,13 +76,13 @@ def quality_ecg(segment, methods=['Level3'], sampling_rate=None,
segment : array
Input signal to test.
method : string
Method to assess quality. One of the following: 'Level3', 'pSQI', 'kSQI', 'Zhao'.
Method to assess quality. One or more of the following: 'Level3', 'pSQI', 'kSQI', 'fSQI'.
sampling_rate : int
Sampling frequency (Hz).
threshold : float
Threshold for the correlation coefficient.
bit : int
Number of bits of the ADC.? Resolution bits, for the BITalino is 10 bits.
Number of bits of the ADC. Resolution bits, for the BITalino is 10 bits.
Returns
-------
Expand Down

0 comments on commit 74970a5

Please sign in to comment.