-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Contrib] Added default non-verbose to download_testdata(), pass to d…
…ownload() (#8533) * [Contrib] Added default non-verbose to download_testdata(), pass to download(). Minor cleanup as well, while in the file - Using tempfile.TemporaryDirectory instead of explicit cleanup. - Pass through verbose/retries arguments if replacing a corrupted copy. * [Contrib] Switched download.py from print statements to logging * [Contrib] Added shutil.copy2 fallback after downloading file. Initial implementation using tempfile.TemporaryDirectory assumed that the tempdir and output location were on the same drive, and could be renamed. This update falls back to copying from the temporary directory, in case the tempdir is on a different drive. Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
- Loading branch information
1 parent
fcbd2b6
commit 6b2cbfe
Showing
2 changed files
with
68 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters