(repo: str, download_path: Path, filename: str, progress: bool = True)
| 188 | |
| 189 | |
| 190 | def _download_from_github(repo: str, download_path: Path, filename: str, progress: bool = True) -> None: |
| 191 | repo_owner, repo_name, tag_name = repo.split("/") |
| 192 | if ".zip" not in filename: |
| 193 | filename += ".zip" |
| 194 | url = _get_git_release_url(repo_owner, repo_name, tag_name=tag_name, filename=filename) |
| 195 | filepath = download_path / f"{filename}" |
| 196 | download_url(url=url, filepath=filepath, hash_val=None, progress=progress) |
| 197 | extractall(filepath=filepath, output_dir=download_path, has_base=True) |
| 198 | |
| 199 | |
| 200 | def _download_from_monaihosting(download_path: Path, filename: str, version: str, progress: bool) -> None: |
no test coverage detected
searching dependent graphs…