-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun03_prepareFigs.sh
executable file
·53 lines (47 loc) · 1.23 KB
/
run03_prepareFigs.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
(
source ./NPenv/bin/activate
cd figures || exit
echo creating the cmaps and the legends
python createCMAPS.py
deactivate
)
(
#this is neccessary to workaround a problem between matplolib and PySide
cd figures || exit
if [[ ! -d NPfiguresEnv ]]; then
python3 -m venv NPfiguresEnv
source ./NPfiguresEnv/bin/activate
pip install -U pip
pip install -r requirements.txt
else
source ./NPfiguresEnv/bin/activate
fi
echo creating the .xyz for visualization
python createXYZs.py
python createXYZForFig4.py
echo creating the images with ovito
python legendAtomsCreation.py
python createDefaultImgs-ico.py
python createDefaultImgs-idealForFig1.py
python createDefaultImgs.py
python createico309SOAPexample.py
python createImgsForFig4.py
python createImgsForFig3.py
deactivate
)
(
source ./NPenv/bin/activate
cd figures || exit
echo generating the figures:
echo -e "\tfigures 1 and 2"
python figure1and2.py
for i in 3 4 5; do
echo -e "\tfigure $i"
python "figure${i}.py"
done
echo -e "\tfigures 6 and 7"
python figure6and7.py
echo -e "\tSI figures"
python figuresSI.py
)