Skip to content

Commit 10bbfe6

Browse files
committed
Fix model logic
1 parent 0434321 commit 10bbfe6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

brats/model/project/mlcube.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""MLCube handler file"""
2-
import os
3-
import shutil
42
import typer
53
import yaml
64
from src.my_logic import run_code
@@ -55,9 +53,7 @@ def infer(
5553
output_path: str = typer.Option(..., "--output_path"),
5654
parameters_file: str = typer.Option(..., "--parameters_file")
5755
):
58-
filename = "BraTS_example_seg.nii.gz"
59-
shutil.copyfile(os.path.join(data_path, filename), os.path.join(output_path, filename))
60-
print("Done!")
56+
InferTask.run(data_path, output_path, parameters_file)
6157

6258

6359
if __name__ == "__main__":

brats/model/project/src/my_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
def logic_wrapper(input_folder, output_folder):
88
"""Edit your logic here"""
9-
input_file = os.path.normpath(input_folder + "/something_t1.nii.gz")
10-
output_file = os.path.normpath(output_folder + "/something_seg.nii.gz")
9+
input_file = os.path.normpath(input_folder + "/BraTS_example_seg.nii.gz")
10+
output_file = os.path.normpath(output_folder + "/BraTS_example_seg.nii.gz")
1111

1212
# copy paste your logic here
1313
print("wrapper: Here you can place your own logic")

0 commit comments

Comments
 (0)