mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
flip conda and time
hopefully we can capture the exit code this way
This commit is contained in:
parent
5252a81238
commit
df12470e78
2 changed files with 2 additions and 2 deletions
|
@ -62,6 +62,6 @@ echo ">>> Installing requirements";
|
|||
conda run -n py38 pip install -r requirements.txt;
|
||||
echo ">>> Training model";
|
||||
#shellcheck disable=SC2086
|
||||
/usr/bin/env time -v conda run -n py38 src/index.py pretrain-plot -i "${INPUT}" -o "${filepath_output}" ${ARGS};
|
||||
conda run -n py38 /usr/bin/env time -v src/index.py pretrain-plot -i "${INPUT}" -o "${filepath_output}" ${ARGS};
|
||||
# src/index.py pretrain --input "${INPUT}" --output "${dir_output}" ${ARGS};
|
||||
echo ">>> exited with code $?";
|
||||
|
|
|
@ -69,7 +69,7 @@ echo ">>> Installing requirements";
|
|||
conda run -n py38 pip install -r requirements.txt;
|
||||
echo ">>> Training model";
|
||||
#shellcheck disable=SC2086
|
||||
/usr/bin/env time -v conda run -n py38 src/index.py pretrain-predict --input "${INPUT}" --output "${filepath_output}" -c "${CHECKPOINT}"
|
||||
conda run -n py38 /usr/bin/env time -v src/index.py pretrain-predict --input "${INPUT}" --output "${filepath_output}" -c "${CHECKPOINT}"
|
||||
echo ">>> exited with code $?";
|
||||
|
||||
INPUT="${filepath_output}" POSTFIX="${POSTFIX}" sbatch slurm-pretrain-plot.job
|
||||
|
|
Loading…
Reference in a new issue