skjerns / AutoSleepScorer

An open-source sleep stage classification Python package
GNU Affero General Public License v3.0
103 stars 22 forks source link

Path Error #25

Closed madhhir closed 2 years ago

madhhir commented 2 years ago

Hi Simon, I'm getting this error.

main.py", line 50, in

if os.path.isdir(path):

TypeError: _isdir: path should be string, bytes or os.PathLike, not NoneType

Could you please help in identifying the reason why the path is inaccessible?

skjerns commented 2 years ago

what did you use as an input argument? the path to the PSG/EDF file should be supplied using the first argument. if you don't supply it, you will get this error

madhhir commented 2 years ago

what did you use as an input argument? the path to the PSG/EDF file should be supplied using the first argument. if you don't supply it, you will get this error

https://www.physionet.org/content/sleep-edfx/1.0.0/sleep-cassette/SC4001E0-PSG.edf This path has been taken as per the code.

skjerns commented 2 years ago

yes, you need a local file path, no URL