def testElectrodeQualities(X, fs=200, pktsize=20):
    '[summary]\n\n    Args:\n        X ([type]): [description]\n        fs (int, optional): [description]. Defaults to 200.\n        pktsize (int, optional): [description]. Defaults to 20.\n\n    Returns:\n        [type]: [description]\n    '
    if (X.ndim > 2):
        sigq = []
        for i in range(X.shape[0]):
            sigqi = testElectrodeQualities(X[(i, ...)], fs, pktsize)
            sigq.append(sigqi)
        sigq = np.concatenate(sigq, 0)
        return sigq
    ppfn = butterfilt_and_downsample(order=6, stopband='butter_stopband((0, 5), (25, -1))_fs200.pk', fs_out=100)
    ppfn.fit(X[:10, :], fs=200)
    noise2sig = np.zeros((int((X.shape[0] / pktsize)), X.shape[(- 1)]), dtype=np.float32)
    for pkti in range(noise2sig.shape[0]):
        t = (pkti * pktsize)
        Xi = X[t:(t + pktsize), :]
        Xip = ppfn.transform(Xi)
        (raw_power, preproc_power) = UtopiaDataInterface.update_electrode_powers(Xi, Xip)
        noise2sig[pkti, :] = (np.maximum(float(1e-06), (raw_power - preproc_power)) / np.maximum(float(1e-08), preproc_power))
    return noise2sig
[summary]

Args:
    X ([type]): [description]
    fs (int, optional): [description]. Defaults to 200.
    pktsize (int, optional): [description]. Defaults to 20.

Returns:
    [type]: [description]
def testElectrodeQualities(X, fs=200, pktsize=20):
    '[summary]\n\n    Args:\n        X ([type]): [description]\n        fs (int, optional): [description]. Defaults to 200.\n        pktsize (int, optional): [description]. Defaults to 20.\n\n    Returns:\n        [type]: [description]\n    '
    if (X.ndim > 2):
        sigq = []
        for i in range(X.shape[0]):
            sigqi = testElectrodeQualities(X[(i, ...)], fs, pktsize)
            sigq.append(sigqi)
        sigq = np.concatenate(sigq, 0)
        return sigq
    ppfn = butterfilt_and_downsample(order=6, stopband='butter_stopband((0, 5), (25, -1))_fs200.pk', fs_out=100)
    ppfn.fit(X[:10, :], fs=200)
    noise2sig = np.zeros((int((X.shape[0] / pktsize)), X.shape[(- 1)]), dtype=np.float32)
    for pkti in range(noise2sig.shape[0]):
        t = (pkti * pktsize)
        Xi = X[t:(t + pktsize), :]
        Xip = ppfn.transform(Xi)
        (raw_power, preproc_power) = UtopiaDataInterface.update_electrode_powers(Xi, Xip)
        noise2sig[pkti, :] = (np.maximum(float(1e-06), (raw_power - preproc_power)) / np.maximum(float(1e-08), preproc_power))
    return noise2sig