-
Notifications
You must be signed in to change notification settings - Fork 266
Accept file and path names to be pathlib objects #911
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
Accept file and path names to be pathlib objects #911
Conversation
| return_path=return_path, | ||
| clean=clean) | ||
|
|
||
| def create_file_reader(self, filename=None, return_path=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why we add this before.
it is not used anymore ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not used within Neo and is also not working, e.g. when trying to create a generic reader as the default filename does not exist.
|
Ok for me. |
|
I am not sure why circleCI is not receiving output for some time. I think we should investigate this phenomenon in general, since this has been an issue also in other PRs... Maybe it's a matter of adjusting the CI configuration to our current requirements? |
This commits adds a test that is running all IOs with an input filename / directory name specified as a pathlib object.
d58c08a to
357ed72
Compare
|
This is rebased and tests are fixed. @samuelgarcia ready for final review. |
|
OK for me. |
All IOs implicitly assume that the file and directory names provided are strings. Therefore many IOs fail, when a path specified as a pathlib object is provided instead. This PR introduces the automatic conversion of filenames and directory names, for all IOs and adds a common IO test.