Skip to content

Commit

Permalink
fix some problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome-Hsieh committed Nov 16, 2024
1 parent c43591b commit 0511db5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions monai/apps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,5 @@ def download_and_extract(
filename = filepath
else:
filename = Path(tmp_dir, _basename(url)).resolve()
filename = filepath if filepath else Path(tmp_dir, _basename(url)).resolve()
download_url(url=url, filepath=filename, hash_val=hash_val, hash_type=hash_type, progress=progress)
extractall(filepath=filename, output_dir=output_dir, file_type=file_type, has_base=has_base)
extractall(filepath=filename, output_dir=output_dir, file_type=file_type, has_base=has_base)

0 comments on commit 0511db5

Please sign in to comment.