# make use of relion GUI scheduler template and customization

#doesn't make sense to allow switching scheduler
export RELION_QSUB_COMMAND="sbatch"

# default partition, this is changeable in the GUI and should be updated to match your cluster
if [ -z "${RELION_QUEUE_NAME}" ]; then
	export RELION_QUEUE_NAME="relion-gpu"
fi

# make some relion config variables user-overridable
if [ -z "${RELION_QSUB_EXTRA1}" ]; then
	export RELION_QSUB_EXTRA1="Number of GPUs Requested:"
fi
if [ -z "${RELION_QSUB_EXTRA1_DEFAULT}" ]; then
	export RELION_QSUB_EXTRA1_DEFAULT=4
fi
if [ -z "${RELION_QSUB_EXTRA2}" ]; then
	export RELION_QSUB_EXTRA2="max runtime"
fi
if [ -z "${RELION_QSUB_EXTRA2_DEFAULT}" ]; then
	export RELION_QSUB_EXTRA2_DEFAULT=02:00:00
fi
# in testing with relion 5, RELION_QSUB_EXTRA_COUNT was not necessary.

# This should be the location of the slurm template.
# Note that this is editable in the GUI
if [ -z "${RELION_QSUB_TEMPLATE}" ]; then
	export RELION_QSUB_TEMPLATE="/programs/local/relion-slurm_template.sh"
fi


#UI default, already user-editable
export RELION_TOPAZ_EXECUTABLE="topaz"

#This may need to be changed depending on the desktop
export RELION_PDFVIEWER_EXECUTABLE="atril"
