Open fuiyoo opened 7 months ago
@fuiyoo please provide details regarding which database / file you're trying to run rdsamp
on and your lines of code.
these are the lines of codes.
signals,field = wfdb.rdsamp('Dual-task/S0088_DT_D1',sampfrom=800,channels=[1,3]) display(signals) display(fields)
the error of the codes are like this
FileNotFoundError Traceback (most recent call last) Cell In[3], line 1 ----> 1 signals,field = wfdb.rdsamp('Dual-task/S0088_DT_D1',sampfrom=800,channels=[1,3]) 2 display(signals) 3 display(fields)
File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\wfdb\io\record.py:2317, in rdsamp(record_name, sampfrom, sampto, channels, pn_dir, channel_names, warn_empty, return_res) 2312 dir_list = pn_dir.split("/") 2313 pn_dir = posixpath.join( 2314 dir_list[0], download.get_version(dir_list[0]), *dir_list[1:] 2315 ) -> 2317 record = rdrecord( 2318 record_name=record_name, 2319 sampfrom=sampfrom, 2320 sampto=sampto, 2321 channels=channels, 2322 physical=True, 2323 pn_dir=pn_dir, 2324 m2s=True, 2325 return_res=return_res, 2326 channel_names=channel_names, 2327 warn_empty=warn_empty, 2328 ) 2330 signals = record.p_signal ... 1844 ) as f: 1845 header_content = f.read() 1846 else:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\User\Downloads\tai-chi-physiological-complexity-and-healthy-aging-gait-1.0.2\tai-chi-physiological-complexity-and-healthy-aging-gait-1.0.2\Dual-task\S0088_DT_D1.hea'
I try to display the values of EMG signal from Physionet
I cannot upload the files here because Github does not support the file type
It says the rdsamp file cannot be found. I follow the steps correctly in Youtube and wfdb website.