Revision a30be4c6f81f4a41875ce6234f0e17e7906cb821 authored by NikVard on 04 July 2022, 09:10:59 UTC, committed by NikVard on 04 July 2022, 09:10:59 UTC
run_sim_CA1_inp.sh
#!/usr/bin/env bash
# -*- encoding: utf-8 -*-
### Arguments list
### ----------------------------
# $CNT : simulation counter
# $RESDIR : results directory
# $FCONF : current configuration file
### ----------------------------
### Print current simulation start time [24H format]
CURRTIME=$(date +"%T")
echo "Running simulation $CNT with config file $FCONF at time $CURRTIME";
FNAME=$(basename $FCONF)
FNAME=$(echo $FNAME | cut -f 1 -d '.')
# python3 -c "from brian2 import *; clear_cache('cython');" > /dev/null 2>&1
command time -v python3 run_sim_dumb_CA1.py -p $FCONF -sd $OUTDIR > "$RESDIR/sim_${CNT}_${FNAME}.txt" 2>&1
CODE=$?
echo $CODE
RESULT=""
if [ $CODE = 0 ]; then
RESULT="success"
else
RESULT="failure"
fi
echo "Done + $RESULT"
echo "$CNT : $FCONF : $RESULT" >> "$RESDIR/total.txt"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...