-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bash
More file actions
executable file
·30 lines (26 loc) · 806 Bytes
/
Copy pathrun.bash
File metadata and controls
executable file
·30 lines (26 loc) · 806 Bytes
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
27
28
29
30
#!/usr/bin/env bash
# Test for scipy
python -c 'import MAUS'
if [[ $? != 0 ]]; then
echo "FATAL - MAUS not installed"
exit 1
fi
python -c 'import scipy'
if [[ $? != 0 ]]; then
echo "FATAL - SciPy not installed"
exit 1
fi
python -c 'import xboa; print xboa.__version__'
if [[ $? != 0 ]]; then
echo "FATAL - xboa version should be at least 0.17.d"
exit 1
fi
# To run, do:
# Generates a field map
python make_field_map.py --configuration_file config.py
# Runs tracking; this takes about 10 minutes on my desktop PC. Requires
# additional SciPy python library.
python single_tracking.py
# Generates plots - the last three plots in the slides at
# http://micewww.pp.rl.ac.uk/projects/analysis/wiki/PC-2016-01-28-optics
python plot_single_tracking.py --configuration_file config.py