-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
82 lines (72 loc) · 1.9 KB
/
main.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from EM1PythonClasses import DataProcessor
from EM1PythonFunctions import plot_all
# Define the DataProcessors below
pnbi_class_default = DataProcessor(
base_path="EM1 Data/3rd Run Data (fast mode)",
file_name_template="NBI Power {}MW.mat",
primary_x_parameter="pnbi",
)
b0_class_2MW = DataProcessor(
base_path="EM1 Data/4th Run Data (fast mode)",
file_name_template="NBI Power 2MW B0 {}T.mat",
primary_x_parameter="b0",
)
ip_class_2MW = DataProcessor(
base_path="EM1 Data/5th Run Data (fast mode)/",
file_name_template="NBI Power 2MW Ip {}MA.mat",
primary_x_parameter="ip",
)
nbar_class_2MW = DataProcessor(
base_path="EM1 Data/6th Run Data (fast mode)",
file_name_template="NBI Power 2MW nbar {}.mat",
primary_x_parameter="nbar",
)
maximising_pnbi_class = DataProcessor(
base_path="EM1 Data/9th Run Data (fast mode)",
file_name_template="NBI Power 2MW Max {}.mat",
primary_x_parameter="temps",
subsets=True,
)
ramping_class_default = DataProcessor(
base_path="EM1 Data/8th Run Data (fast mode)",
file_name_template=("NBI Ramping 0 to {}MW.mat"),
primary_x_parameter="pnbi",
subsets=True,
)
# Define the list of DataProcessors to be plotted
DataProcessors = [
pnbi_class_default,
b0_class_2MW,
ip_class_2MW,
nbar_class_2MW,
ramping_class_default,
maximising_pnbi_class,
]
# variables = [
# "nTtau",
# "ni0",
# "taue",
# "nbar",
# "ni0",
# "nim",
# "ne0",
# "te0",
# "tem",
# "tite",
# "tim",
# "modeh",
# ]
# variables = ["nbar", "ni0", "nim", "ne0"]
# variables = [
# "te0",
# "tem",
# "tite",
# "tim",
# ]
# variables = ["ne0", "te0", "taue", "ne0te0taue", "nim", "tim", "taue", "nimtimtaue"]
# variables = ["ne0", "te0", "taue", "ne0te0taue"]
# variables = ["ne0"]
# variables = ["taue"]
variables = ["ne0te0taue"]
# Plot the data
plot_all(DataProcessors, variables)