echo "This script replaces lines in a template file (submit_template.sh) and create a workspace for the jobs submission."
echo "You need to specify/have:"
echo "- a template file 'submit_template.sh' in the directory where you are executing the script"
echo "- a python executable file in your working directory"
echo "- a set of inputs for your jobs, meaning: model, partition (CPU or GPU), memory, input data folder, test dataset, nr. nodes for the ML algorithm."
echo "By invoking this script you will create a workspace with files having the righ formatting for the submission on sbatch system."
TIME="00:30:00" #set the maximum time in the format XX:YY:ZZ
VIRTUALENV="hyenergy_py3" ## your virtual env name
MEM="4G" ## memory requirment for the node
MODEL="ELM" ## ML model name
PYTHON_EXECUTABLE="ELM_uncertainties_query" # becomes [..]_query.py or [..]_train.py or [..].py
MYDIR="energy-potential/Solar" # path should start from home
SCRATCHDIR="/scratch/rcastell" ## your scratch
DATADIR="\/scratch\/rcastell" ## --> needed for the different syntax N.B. it is enough to put your scratch location (modulo a dataset/ folder is existing)
## Arrays
PART_VEC=( "GPU" ) ## Partition: "CPU" or "GPU" or both
DATA_VEC=( "2012-2012_grid100_SIS" ) ## Dataset name
QUERY_VEC=( "grid1600" ) ## Query name
NODE_VEC=( "200" ) ## nr. nodes of ELM
EST_VEC=( "2" "5" "10" ) ## nr. estimators for the ensamble