Skip to content

datasets_download.py - change default data_path #1369

Merged
aclegg3 merged 2 commits intomasterfrom
datasets-download-default
Jul 6, 2021
Merged

datasets_download.py - change default data_path #1369
aclegg3 merged 2 commits intomasterfrom
datasets-download-default

Conversation

@aclegg3
Copy link
Copy Markdown
Contributor

@aclegg3 aclegg3 commented Jul 1, 2021

Motivation and Context

Change default data_path from git to ./data/ so the script has a reasonable default outside of git repo but is also compatible with previous default behavior in habitat-sim directory and doesn't flood an existing user directory.

How Has This Been Tested

Locally

Types of changes

  • Docs change / refactoring / dependency upgrade
  • 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 code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 1, 2021
data_path = args.data_path
if not data_path:
try:
import git
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe, we can do both, check git repo first, and then use ./data/ as fall back?

Comment thread habitat_sim/utils/datasets_download.py
@aclegg3 aclegg3 merged commit 62b0350 into master Jul 6, 2021
@aclegg3 aclegg3 deleted the datasets-download-default branch July 6, 2021 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants