Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I try to use Rdsamp but it says the file cannot be found. I am using Jupyter notebook #476

Open
fuiyoo opened this issue Dec 19, 2023 · 4 comments

Comments

@fuiyoo
Copy link

fuiyoo commented Dec 19, 2023

It says the rdsamp file cannot be found. I follow the steps correctly in Youtube and wfdb website.

@briangow
Copy link
Collaborator

@fuiyoo please provide details regarding which database / file you're trying to run rdsamp on and your lines of code.

@fuiyoo
Copy link
Author

fuiyoo commented Dec 19, 2023

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'

@fuiyoo
Copy link
Author

fuiyoo commented Dec 19, 2023

I try to display the values of EMG signal from Physionet

@fuiyoo
Copy link
Author

fuiyoo commented Dec 19, 2023

I cannot upload the files here because Github does not support the file type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants