You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ECG_detector_wrapper.py at 20e24c5 on the TUH - TUSZ/dev dataset.
The script works well (on hundreds of files) until it hits dev/03_tcp_ar_a/022/00002297/s003_2007_10_23/00002297_s003_t000.edf. Other files fail as well, with the same error.
Statistics:
367 files Fail
945 files OK
Error is
(env) $ python3 ECG_detector_wrapper.py --i TUH/v1.5.2/edf/dev/03_tcp_ar_a/022/00002297/s003_2007_10_23/00002297_s003_t000.edf -o test.json
Traceback (most recent call last):
File "ECG_detector_wrapper.py", line 192, in <module>
raise ValueError("Invalid ECG channels - " + str(n_ecg_channels))
ValueError: Invalid ECG channels - 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ECG_detector_wrapper.py", line 258, in <module>
json.dump({"error": e} , open(output_filename, "w"))
File "/usr/lib/python3.7/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ValueError is not JSON serializable
The text was updated successfully, but these errors were encountered:
Using ECG_detector_wrapper.py at 20e24c5 on the TUH - TUSZ/dev dataset.
The script works well (on hundreds of files) until it hits
dev/03_tcp_ar_a/022/00002297/s003_2007_10_23/00002297_s003_t000.edf
. Other files fail as well, with the same error.Statistics:
Error is
The text was updated successfully, but these errors were encountered: