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

Update NASA DAAC download function to include all DAAC server. #3332

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

DongchenZ
Copy link
Contributor

Description

Motivation and Context

Review Time Estimate

  • Immediately
  • Within one week
  • When possible

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • My name is in the list of CITATION.cff
  • I have updated the CHANGELOG.md.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

doi,
netrc_file = NULL,
just_path = FALSE) {
# if there is no credential file in the outdir.
# we will create a new one.
# this function is located within the GEDI_AGB_prep script.
if (length(list.files(outdir, pattern = "netrc")) == 0) {
netrc_file <- getnetrc(outdir)
if (is.null(outdir) & !just_path) {
Copy link
Member

Choose a reason for hiding this comment

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

I suspect a better default for outdir is the current directory (e.g. getwd() or "."). It's unexpected to provide a default value and then have that default value throw an error, as that means the argument is required and shouldn't have a default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@mdietze mdietze enabled auto-merge July 12, 2024 17:44
@mdietze mdietze added this pull request to the merge queue Jul 12, 2024
Merged via the queue into PecanProject:develop with commit d16dfbf Jul 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants