-
Notifications
You must be signed in to change notification settings - Fork 85
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
download
returns inconsistent types (Path
s or str
s) depending on in_region
#595
Comments
Nice catch! Why isn't our type checker catching this though? earthaccess/earthaccess/api.py Line 177 in 9f43047
I love pathlib though, should we update |
If you want to be fancy, you could return the same type given to you in the |
I like the idea of returning a list of Path objects. I think this would avoid cross platform issues. |
I would like to upvote this for
|
download
returns Path
objects rather than strings when in_region
download
returns inconsistent types (Path
s or str
s) depending on in_region
Excellent point. Let's please keep in mind as we address this that we also have work in progress to establish a compatibility policy: https://github.com/nsidc/earthaccess/pull/763/files We should include a prominent notification of breaking change and a migration guide with code examples. |
The download docs say that the return value shall be a list of strings. When running
in_region
however, the result is a list ofpathlib.PosixPath
objects.The last assert raises an exception.
The text was updated successfully, but these errors were encountered: