-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen.sh
More file actions
executable file
·40 lines (32 loc) · 857 Bytes
/
gen.sh
File metadata and controls
executable file
·40 lines (32 loc) · 857 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
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Run script with multiple sampling
# Unbiased: 6, 7
# Lower: 10, 11
# Center: 14, 15
# Upper: 18, 19
comment() {
sed -i -E "$1 s/^(\s*)(.*)/\1#\2/" "$2"
}
uncomment() {
sed -i -E "$1 s/^(\s*)#\s*/\1/" "$2"
}
uncomment 6 src/sampling.py
uncomment 7 src/sampling.py
python src/tables.py 'tables/unbiased'
comment 6 src/sampling.py
comment 7 src/sampling.py
uncomment 10 src/sampling.py
uncomment 11 src/sampling.py
python src/tables.py 'tables/lowerbiased'
comment 10 src/sampling.py
comment 11 src/sampling.py
uncomment 14 src/sampling.py
uncomment 15 src/sampling.py
python src/tables.py 'tables/centrebiased'
comment 14 src/sampling.py
comment 15 src/sampling.py
uncomment 18 src/sampling.py
uncomment 19 src/sampling.py
python src/tables.py 'tables/upperbiased'
comment 18 src/sampling.py
comment 19 src/ampling.py