-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaffeine.py
65 lines (59 loc) · 2.23 KB
/
caffeine.py
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
54
55
56
57
58
59
60
61
62
63
64
65
import extractor
import stmoduls
def main():
# Set the app
file, clinic_file, all_trends, trend, color, color_plico = stmoduls.app_settings()
if file is not None:
# Read the input xlsx file
header, measurements, plicometry = extractor.extract(file)
# Set the header information
stmoduls.client_details((header, measurements), clinic_file)
if all_trends:
# Weight plots
stmoduls.weight(measurements, color)
# Shoulders plots
stmoduls.shoulders(measurements, color)
# Chest plots
stmoduls.chest(measurements, color)
# Arm plots
stmoduls.arm(measurements, color)
# Waist plots
stmoduls.waist(measurements, color)
# Legs plots
stmoduls.legs(measurements, color)
# Calf plots
stmoduls.calf(measurements, color)
# Buttock plots
stmoduls.buttock(measurements, color)
# Plicometry plots
stmoduls.plicometry(header, plicometry, measurements, color_plico)
else:
if trend == 'Weight':
# Weight plots
stmoduls.weight(measurements, color)
elif trend == 'Shoulders':
# Shoulders plots
stmoduls.shoulders(measurements, color)
elif trend == 'Chest':
# Chest plots
stmoduls.chest(measurements, color)
elif trend == 'Arms':
# Arm plots
stmoduls.arm(measurements, color)
elif trend == 'Waist':
# Waist plots
stmoduls.waist(measurements, color)
elif trend == 'Legs':
# Legs plots
stmoduls.legs(measurements, color)
elif trend == 'Calfs':
# Calf plots
stmoduls.calf(measurements, color)
elif trend == 'Buttock':
# Buttock plots
stmoduls.buttock(measurements, color)
else:
# Plicometry plots
stmoduls.plicometry(header, plicometry, measurements, color_plico)
if __name__ == '__main__':
main()