Closed andbiz closed 7 years ago
How to reproduce:
from __future__ import division import numpy as np import pandas as pd import pyphysio as ph FILE = '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/sample_data/medical.txt' FSAMP = 2048 TSTART = 0 data = np.loadtxt(FILE, delimiter='\t') ecg = ph.EvenlySignal(data[:, 0], sampling_freq = FSAMP, signal_nature = 'ECG', start_time = TSTART) ecg_bp = ph.IIRFilter(fp=[10, 50], fs=[0.01, 70])(ecg) # <== Traceback (most recent call last): File "<ipython-input-43-61d61d81a620>", line 1, in <module> ecg_bp = ph.IIRFilter(fp=[10, 50], fs=[0.01, 70])(ecg) # OK File "pyphysio/BaseAlgorithm.py", line 50, in __call__ return self.get(data, self._params) File "pyphysio/BaseAlgorithm.py", line 79, in get return cls.algorithm(data, kwargs) File "pyphysio/filters/Filters.py", line 175, in algorithm cls.warn(cls.__name__ + ': Filter parameters allow no solution. Returning original signal.') File "pyphysio/BaseAlgorithm.py", line 144, in warn cls.emulate_log([l]) File "pyphysio/BaseAlgorithm.py", line 168, in emulate_log map(lambda f, m: f(m), log) TypeError: <lambda>() takes exactly 2 arguments (1 given)
How to reproduce: