Skip to content

Commit 4a4a738

Browse files
solve errors
Signed-off-by: Yiheng Wang <[email protected]>
1 parent 51fc9fb commit 4a4a738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/bundle/scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ def _download_from_monaihosting(download_path: Path, filename: str, version: str
209209

210210

211211
def _download_from_bundle_info(download_path: Path, filename: str, version: str, progress: bool) -> None:
212-
bundle_info = get_bundle_info(name=filename, version=version)
212+
bundle_info = get_bundle_info(bundle_name=filename, version=version)
213213
if not bundle_info:
214214
raise ValueError(f"Bundle info not found for {filename} v{version}.")
215-
url = bundle_info["source"]
215+
url = bundle_info["browser_download_url"]
216216
filepath = download_path / f"{filename}_v{version}.zip"
217217
download_url(url=url, filepath=filepath, hash_val=None, progress=progress)
218218
extractall(filepath=filepath, output_dir=download_path, has_base=True)

0 commit comments

Comments
 (0)