Skip to content

Commit

Permalink
Revert "hack for testing in dev version"
Browse files Browse the repository at this point in the history
This reverts commit 8484dbd.
  • Loading branch information
mingxin-zheng committed Oct 11, 2023
1 parent 8484dbd commit 1911b04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions ci/get_bundle_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@

import argparse
import os
import re

from bundle_custom_data import install_dependency_dict
from utils import get_json_dict

def is_commit_hash(s):
return bool(re.match('^[0-9a-f]{7,40}$', s))

def get_requirements(bundle, models_path):
"""
Expand All @@ -32,10 +29,7 @@ def get_requirements(bundle, models_path):
libs = []
if "monai_version" in metadata.keys():
monai_version = metadata["monai_version"]
if is_commit_hash(monai_version):
libs.append(f"git+https://github.com/Project-MONAI/MONAI@${monai_version}#egg=monai")
else:
libs.append(f"monai=={monai_version}")
libs.append(f"monai=={monai_version}")
if "pytorch_version" in metadata.keys():
pytorch_version = metadata["pytorch_version"]
libs.append(f"torch=={pytorch_version}")
Expand Down
2 changes: 1 addition & 1 deletion models/spleen_deepedit_annotation/configs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"0.1.0": "complete the model package",
"0.0.1": "initialize the model package structure"
},
"monai_version": "fc1350aae1de702404189f334ac17fd6f51321d0",
"monai_version": "1.2.0",
"pytorch_version": "1.13.1",
"numpy_version": "1.22.2",
"optional_packages_version": {
Expand Down

0 comments on commit 1911b04

Please sign in to comment.