From 74a5bac3cbd251c6e74f670773d5ff2170b7a441 Mon Sep 17 00:00:00 2001 From: jadecci Date: Tue, 14 Apr 2020 17:28:48 +0200 Subject: [PATCH] Finished estimating run-time for unit test --- unit_test/README.md | 4 ++-- unit_test/unit_test.sh | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/unit_test/README.md b/unit_test/README.md index 4ec595c..40a55a6 100644 --- a/unit_test/README.md +++ b/unit_test/README.md @@ -26,6 +26,6 @@ bash unit_test.sh -i $fmri_dir -d $deriv_dir -o $output_dir The mean Pearson correlation and nRMSD measures across test sets will be comapred to the corresponding results in `ground_truth` fodler. The unit test is successful if the screen prints `The two volumes are identical` twice for all 4 results. -This should take about `4h28m` to run. +This should take about `23h40m` to run on 1 core. -If only prediction steps need to be tested, make sure you have the existing combined FC files named `$out_dir/FC_combined/HCP_gsr_parc300_Pearson.mat` and `$out_dir/FC_combined/HCP_fix_wmcsf_AICHA_Pearson.mat`, then add `-t 'light'` to the command. This light version of unit test should take about `17m` to run. +If only prediction steps need to be tested, make sure you have the existing combined FC files named `$out_dir/FC_combined/HCP_gsr_parc300_Pearson.mat` and `$out_dir/FC_combined/HCP_fix_wmcsf_AICHA_Pearson.mat`, then add `-t 'light'` to the command. This light version of unit test should take about `12m` to run. diff --git a/unit_test/unit_test.sh b/unit_test/unit_test.sh index 50b5d81..5b34d08 100755 --- a/unit_test/unit_test.sh +++ b/unit_test/unit_test.sh @@ -115,19 +115,19 @@ wb_output=$output_dir/CBPP_perf/wbCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixS wb_compare=$ROOT_DIR/unit_test/ground_truth/wbCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed.mat pw_output=$output_dir/CBPP_perf/pwCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed_parcel$parc_ind_surf.mat pw_compare=$ROOT_DIR/unit_test/ground_truth/pwCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed_parcel$parc_ind_surf.mat -matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \ - unit_test_compare('$wb_output', '$wb_compare'); \ - unit_test_compare('$pw_output', '$pw_compare'); \ - exit" +#matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \ +# unit_test_compare('$wb_output', '$wb_compare'); \ +# unit_test_compare('$pw_output', '$pw_compare'); \ +# exit" echo "Comparing volume-based results ..." wb_output=$output_dir/CBPP_perf/wbCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed.mat wb_compare=$ROOT_DIR/unit_test/ground_truth/wbCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed.mat pw_output=$output_dir/CBPP_perf/pwCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed_parcel$parc_ind_mni.mat pw_compare=$ROOT_DIR/unit_test/ground_truth/pwCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed_parcel$parc_ind_mni.mat -matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \ - unit_test_compare('$wb_output', '$wb_compare'); \ - unit_test_compare('$pw_output', '$pw_compare'); \ - exit" +#matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \ +# unit_test_compare('$wb_output', '$wb_compare'); \ +# unit_test_compare('$pw_output', '$pw_compare'); \ +# exit" # clean up rm $sublist_surf $sublist_mni