Skip to content

Commit

Permalink
Testing the latest seg/rads lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dbouget committed Jun 14, 2024
1 parent de39253 commit cc5f708
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@software
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@req
pip install -r assets/requirements.txt
pip install matplotlib==3.3.4
pip install --force-reinstall --no-cache-dir pyside6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_macos_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python3 -m pip install --upgrade pip
pip3 install ffmpeg
pip3 install matplotlib
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@master
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@req
pip3 install -r assets/requirements.txt
pip install --force-reinstall --no-cache-dir pyside6
pip install urllib3==1.26.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@master
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@req
pip install -r assets/requirements.txt
pip uninstall -y PySide6 PySide6-Addons PySide6-Essentials
pip install --force-reinstall --no-cache-dir pyside6==6.2.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
python -m pip install --upgrade pip
ls
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@master
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@req
pip install -r assets/requirements.txt
pip install matplotlib==3.3.4
pip install --force-reinstall --no-cache-dir pyside6
Expand Down
4 changes: 3 additions & 1 deletion gui/SinglePatientComponent/CentralAreaExecutionWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def on_pipeline_execution(self, pipeline_code: str) -> None:
"""
self.model_name = ""
if ("Classification" not in pipeline_code) and ("Brain" not in pipeline_code) and ("postop" not in pipeline_code):
if ("Classification" not in pipeline_code) and ("Brain" not in pipeline_code) and ("postop" not in pipeline_code) and ("Edema" not in pipeline_code):
diag = TumorTypeSelectionQDialog(self)
code = diag.exec_()
if code == 0: # Operation cancelled
Expand All @@ -169,6 +169,8 @@ def on_pipeline_execution(self, pipeline_code: str) -> None:
self.model_name = "MRI_Brain"
elif "postop" in pipeline_code:
self.model_name = "MRI_GBM_Postop_FV_4p"
elif "Edema" in pipeline_code:
self.model_name = "MRI_Edema"

self.process_started.emit()
self.pipeline_main_wrapper(pipeline_code)
Expand Down
4 changes: 2 additions & 2 deletions utils/logic/PipelineCreationHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def __create_custom_pipeline(task, tumor_type, patient_parameters):
pip[pip_num]["description"] = "Lungs segmentation in T1CE (T{})".format(str(timestamp_order))
download_model(model_name="CT_Lungs")

if split_task[1] == 'Tumor':
if split_task[1] == 'Tumor' or split_task[1] == 'Edema':
infile = open(os.path.join(SoftwareConfigResources.getInstance().models_path, tumor_type, 'pipeline.json'),
'rb')
raw_pip = json.load(infile)
Expand All @@ -401,7 +401,7 @@ def __create_custom_pipeline(task, tumor_type, patient_parameters):
pip_num_int = pip_num_int + 1
pip_num = str(pip_num_int)
pip[pip_num] = raw_pip[steps]
if split_task[1] == 'Brain':
elif split_task[1] == 'Brain':
infile = open(os.path.join(SoftwareConfigResources.getInstance().models_path, tumor_type, 'pipeline.json'),
'rb')
raw_pip = json.load(infile)
Expand Down

0 comments on commit cc5f708

Please sign in to comment.