Skip to content

Commit

Permalink
test-decker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KibromBerihu committed Jun 7, 2022
1 parent 3719c08 commit c6989db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

import os
import sys
import warnings
warnings.filterwarnings('ignore')

from src.LFBNet.utilities import train_valid_paths
from src.LFBNet.preprocessing import preprocessing
from src.run import trainer, parse_argument
from src.LFBNet.utilities.compute_surrogate_features import ComputesTMTVsDmaxFromnii
from src.LFBNet.utilities.compute_surrogate_features import ComputesTMTVsDmaxFromNii


def main():
Expand Down Expand Up @@ -52,7 +54,7 @@ def main():
"""

# Path to the parent/main directory. Please read readme.md for how to organize your files.
input_dir = "/input_data"
input_dir = "/input"

# parameters to set
dataset_name = 'data'
Expand Down Expand Up @@ -80,11 +82,11 @@ def main():

print("\n\n Computing the surrogate biomarkers ... \n\n")
for identifier, data_path in zip(
["prd", "gt"], [os.path.join(preprocessing_data_dir, "predicted_data"),
["predicted", "ground_truth"], [os.path.join(preprocessing_data_dir, "predicted_data"),
os.path.join(preprocessing_data_dir, "data_default_MIP_dir")]
):
try:
csv_file = ComputesTMTVsDmaxFromnii(data_path=data_path, get_identifier=identifier)
csv_file = ComputesTMTVsDmaxFromNii(data_path=data_path, get_identifier=identifier)
csv_file.compute_and_save_surrogate_features()
except:
continue
Expand Down

0 comments on commit c6989db

Please sign in to comment.