-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-larpix-scripts.sh
More file actions
26 lines (23 loc) · 1 KB
/
setup-larpix-scripts.sh
File metadata and controls
26 lines (23 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
LARPIX_SCRIPT_DIR="$(dirname "`pwd`/${BASH_SOURCE[0]}")"
echo "larpix-scripts home: $LARPIX_SCRIPT_DIR"
# add larpix-scripts to python path
export PYTHONPATH="${PYTHONPATH}:${LARPIX_SCRIPT_DIR}"
if [ ! -z "$1" ]
# generate a default board layout file (if passed one)
then
echo "generating default board config: "
python_command="
from helpers.pathnames import make_default_board;
from time import localtime;
print(make_default_board(localtime(), '$1', force=True))"
echo $python_command | python
fi
echo "creating aliases..."
alias larpix-check-pedestal="python $LARPIX_SCRIPT_DIR/check_pedestal_width_low_threshold.py"
alias larpix-check-leakage="python $LARPIX_SCRIPT_DIR/check_leakage.py"
alias larpix-configure="python $LARPIX_SCRIPT_DIR/configure_chips.py"
alias larpix-check-sensitivity="python $LARPIX_SCRIPT_DIR/check_channel_sensitivity.py"
alias larpix-run="python $LARPIX_SCRIPT_DIR/collect_data.py"
alias larpix-run-interactive="python -i $LARPIX_SCRIPT_DIR/collect_data.py"
echo "done"