Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Sep 18, 2023
1 parent 5eb6f58 commit 9e3460f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion earthaccess/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ def make_instance(
earthaccess.__auth__ = auth
earthaccess.login()

# When sending EarthAccessFiles between processes, it's possible that
# we will need to switch between s3 <--> https protocols.
if (earthaccess.__store__.running_in_aws and cls is not s3fs.S3File) or (
not earthaccess.__store__.running_in_aws and cls is s3fs.S3File
):
# On AWS but not using a S3File. Reopen the file in this case for direct S3 access.
# NOTE: This uses the first data_link listed in the granule. That's not
# guaranteed to be the right one.
return EarthAccessFile(earthaccess.open([granule])[0], granule)
Expand Down

0 comments on commit 9e3460f

Please sign in to comment.