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

Handling of wrong paths #7

Closed
rob-med opened this issue Nov 9, 2016 · 2 comments
Closed

Handling of wrong paths #7

rob-med opened this issue Nov 9, 2016 · 2 comments

Comments

@rob-med
Copy link

rob-med commented Nov 9, 2016

Currently the library does not handle gracefully when a wrong file path is passed to pyedflib.EdfReader() since it raises a generic 'malloc error' (see trace below):

Traceback (most recent call last):
f = pyedflib.EdfReader(data_EDF)
File "pyedflib_extensions_pyedflib.pyx", line 91, in pyedflib._extensions._pyedflib.CyEdfReader.init (pyedflib_extensions_pyedflib.c:2674)
File "pyedflib_extensions_pyedflib.pyx", line 125, in pyedflib._extensions._pyedflib.CyEdfReader.open (pyedflib_extensions_pyedflib.c:3287)
File "pyedflib_extensions_pyedflib.pyx", line 101, in pyedflib._extensions._pyedflib.CyEdfReader.check_open_ok (pyedflib_extensions_pyedflib.c:2846)
IOError: malloc error

@holgern
Copy link
Owner

holgern commented Nov 14, 2016

Handling of wrong path is fixed in the current master

@holgern holgern closed this as completed Nov 14, 2016
@rob-med
Copy link
Author

rob-med commented Nov 14, 2016

Thank you!

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