Skip to content

Commit 4c25c8a

Browse files
update based on comments
Signed-off-by: Yiheng Wang <[email protected]>
1 parent a65c393 commit 4c25c8a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

monai/bundle/scripts.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ def _get_ngc_token(api_key, retry=0):
312312
return token
313313

314314

315-
def _get_latest_bundle_version_monaihosting(name):
316-
return get_bundle_versions(name, repo="Project-MONAI/model-zoo", tag="dev")["latest_version"]
317-
318-
319315
def _examine_monai_version(monai_version: str) -> tuple[bool, str]:
320316
"""Examine if the package version is compatible with the MONAI version in the metadata."""
321317
version_dict = get_versions()
@@ -419,7 +415,7 @@ def _get_latest_bundle_version(
419415
name = _add_ngc_prefix(name)
420416
return _get_latest_bundle_version_ngc(name)
421417
elif source == "monaihosting":
422-
return _get_latest_bundle_version_monaihosting(name)
418+
return get_bundle_versions(name, repo="Project-MONAI/model-zoo", tag="dev")["latest_version"]
423419
elif source == "ngc_private":
424420
headers = kwargs.pop("headers", {})
425421
name = _add_ngc_prefix(name)

0 commit comments

Comments
 (0)