-
Notifications
You must be signed in to change notification settings - Fork 92
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
[BUG] incorrect typing on get_s3_filesystem has led open_virtual_mfdataset astray #906
Comments
I suspect if you change the signature of get_s3_filesystem (results -> result) there would be much breakage among calls that pass a list. I think you want to correct the typing. If that breaks the mypy checks though, then I don't know! Oh, and it looks like we use |
@ayushnag Agreed, I think using a list is still the recommended way to go and this is an artifact of some missions having their own endpoints like SWOT and NISAR etc. @itcarroll is there a difference in |
|
Is this issue already tracked somewhere, or is this a new report?
Current Behavior
The
earthaccess.open_virtual_mfdataset
function withaccess="direct"
returns aKeyError: 0
.Here the
earthaccess.get_s3_filesystem
is givengranules[0]
when it should be givengranules
.earthaccess/earthaccess/dmrpp_zarr.py
Line 95 in b9dec8b
Here the typing is misleading and should be
Optional[list[DataGranule]]
.earthaccess/earthaccess/api.py
Line 402 in b9dec8b
Expected Behavior
The
earthaccess.open_virtual_mfdataset
function withaccess="direct"
returns a dataset.Steps To Reproduce
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: