Extend/improve support for pathlib.Path #4327
Labels
API
This issue is related to the Nilearn's API.
Code quality
This issue tackles code quality (code refactoring, PEP8...).
Effort: medium
The issue is likely to require a decent amount of work (in between a few hours and a couple days).
Impact: low
Solving this issue will have a small impact on the project.
Priority: low
The task is not urgent and can be delayed.
On that note, it may be worth checking in the public API that users can also pass a Path in places where they can pass a string to a file.
I have not checked but it seems that many functions require a string and that Paths are not supported (or at least the doc string is not necessarily explicit - or I missed it).
May be done as some internal refactoring to rely more on pathlib rather than os (where relevant) - to be discussed.
Originally posted by @Remi-Gau in #4323 (comment)
The text was updated successfully, but these errors were encountered: