Skip to content

Commit

Permalink
Merge pull request #308 from nsidc/small-store-fixups
Browse files Browse the repository at this point in the history
Small store fixups
  • Loading branch information
mfisher87 authored Oct 11, 2023
2 parents 2ee6303 + b9ab86c commit 25a38ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [unreleased]
* bug fixes:
* Fix spelling mistake in `access` variable assignment (`direc` -> `direct`)
in `earthaccess.store._get_granules`.
* Pass `threads` arg to `_open_urls_https` in
`earthaccess.store._open_urls`, replacing the hard-coded value of 8.

## [v0.6.0] 2023-09-20
* bug fixes:
Expand Down
4 changes: 2 additions & 2 deletions earthaccess/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def _open_urls(
"We cannot open S3 links when we are not in-region, try using HTTPS links"
)
return None
fileset = self._open_urls_https(data_links, granules, 8)
fileset = self._open_urls_https(data_links, granules, threads)
return fileset

def get(
Expand Down Expand Up @@ -533,7 +533,7 @@ def _get_granules(
provider = granules[0]["meta"]["provider-id"]
endpoint = self._own_s3_credentials(granules[0]["umm"]["RelatedUrls"])
cloud_hosted = granules[0].cloud_hosted
access = "direc" if (cloud_hosted and self.running_in_aws) else "external"
access = "direct" if (cloud_hosted and self.running_in_aws) else "external"
data_links = list(
# we are not in region
chain.from_iterable(
Expand Down

0 comments on commit 25a38ea

Please sign in to comment.