Skip to content
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

Login to ASF only once per download session #52

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

scottstanie
Copy link
Owner

  • Reorders some of the functions that were in download.py to be in ASFClient (since they're no longer used outside of ASF)
  • The login url insertion from Fix 401 error (ASF) and skip SciHub #37 does work to authenticate, but it runs the Earthdata login every time, which slows things down by 50-100%

@scottstanie scottstanie merged commit 3e4afcd into master Nov 6, 2023
14 checks passed
@scottstanie scottstanie deleted the asf-login-only-once branch November 6, 2023 17:01
results = client.download_all(query, output_directory=save_dir)
filenames.extend(results)
dataspace_successful = True
if client._username and client._password:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pay attention, in the ASFClient you are using self.username and self.password without underscores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants