From 2fdfb8299e2202389bf8185681b6225f46a89575 Mon Sep 17 00:00:00 2001 From: Baptiste LENIAU <baptiste.leniau@subatech.in2p3.fr> Date: Fri, 4 Nov 2016 14:06:04 +0100 Subject: [PATCH] Add a question to user to run on local computer & change path to copy the brand new XSModel (forgot the XSModel folder before) --- Utils/XSM/MLP/Generate/Generate_XSM.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Utils/XSM/MLP/Generate/Generate_XSM.cxx b/Utils/XSM/MLP/Generate/Generate_XSM.cxx index f8ab27643..72c1b525d 100644 --- a/Utils/XSM/MLP/Generate/Generate_XSM.cxx +++ b/Utils/XSM/MLP/Generate/Generate_XSM.cxx @@ -127,7 +127,15 @@ int main(int argc, char ** argv){ { GenerateScript_Sequential(0,fReactionCounter,"_tmp/scripts/Run_Sequential.sh"); CompileTraining(); - Run_Sequential(); + cout << "Let's train locally ? [y/n]" <<endl; + if(UserSayYes()) + Run_Sequential(); + else + { + cout << "You can run _tmp/scripts/Run_Sequential.sh later. Then read the following : "<<endl; + PrintFinalSteps(); + exit(0); + } } else { @@ -232,8 +240,8 @@ void PrintFinalSteps() cout << "│ informations in: │" << endl; cout << "│ \033[36m../Test/EvaluateTrainingCommands.dat\033[0m │" << endl; cout << "│2. Put the file \033[36mData_Base_Info.nfo\033[0m in \033[36mweights\033[0m then │" << endl; - cout << "│ mkdir -p $CLASS_PATH/DATA_BASES/"<<fReactorType<<"/"<<fFuelType << "/ChooseAName │" << endl; - cout << "│ mv weights $CLASS_PATH/DATA_BASES/"<<fReactorType<<"/"<<fFuelType << "/ChooseAName│" << endl; + cout << "│ mkdir -p $CLASS_PATH/DATA_BASES/"<<fReactorType<<"/"<<fFuelType << "/XSModel/ChooseAName │" << endl; + cout << "│ mv weights $CLASS_PATH/DATA_BASES/"<<fReactorType<<"/"<<fFuelType << "/XSModel/ChooseAName│" << endl; cout << "╰───────────────────────────────────────────────────────╯" << endl; } -- GitLab