|
1 | | -#JET signal hierarchy |
2 | | -#------------------------------------------------------------------------# |
3 | | -#User only needs to look at 1st and last sections |
| 1 | +# D3D signal hierarchy |
| 2 | +# ------------------------------------------------------------------------ |
| 3 | +# User only needs to look at 1st and last sections |
4 | 4 | # - conf.py only needs to import signals_dirs and signals_masks |
5 | 5 | # - get_mdsplus_data.py only needs signals_dirs and download_masks |
6 | 6 | # - performance_analysis_utils.py needs : |
7 | 7 | # - signals_dirs, plot_masks, ppf_labels, jpf_labels |
8 | | -#------------------------------------------------------------------------# |
| 8 | +# ------------------------------------------------------------------------ |
9 | 9 | ################ |
10 | 10 | # Signal names # |
11 | 11 | ################ |
12 | | -#This section contains all the exact JET signal strings and their |
13 | | -#groupings by type and dimensionality. |
14 | | -#User should not touch this. Use for reference |
| 12 | +# This section contains all the exact D3D signal strings and their |
| 13 | +# groupings by type and dimensionality. |
| 14 | +# User should not touch this. Use for reference |
15 | 15 |
|
16 | 16 |
|
17 | | -### 0D signals ### |
| 17 | +# 0D signals # |
18 | 18 | signal_paths = [ |
19 | | -'efsli', #Internal Inductance |
20 | | -'ipsip', #Plasma Current |
21 | | -'efsbetan', #Normalized Beta |
22 | | -'efswmhd', #Stored Energy |
23 | | -'nssampn1l', #Tearing Mode Amplitude (rotating 2/1) |
24 | | -'nssfrqn1l', #Tearing Mode Frequency (rotating 2/1) |
25 | | -'nssampn2l', #Tearing Mode Amplitude (rotating 3/2) |
26 | | -'nssfrqn2l', #Tearing Mode Frequency (rotating 3/2) |
27 | | -'dusbradial', #LM Amplitude |
28 | | -'dssdenest', #Plasma Density |
29 | | -r'\bol_l15_p', #Radiated Power core |
30 | | -r'\bol_l03_p', #Radiated Power Edge |
31 | | -'bmspinj', #Total Beam Power |
32 | | -'bmstinj',] #Total Beam Torque |
33 | | -#'pcechpwrf'] #Total ECH Power Not always on! |
| 19 | + 'efsli', # Internal Inductance |
| 20 | + 'ipsip', # Plasma Current |
| 21 | + 'efsbetan', # Normalized Beta |
| 22 | + 'efswmhd', # Stored Energy |
| 23 | + 'nssampn1l', # Tearing Mode Amplitude (rotating 2/1) |
| 24 | + 'nssfrqn1l', # Tearing Mode Frequency (rotating 2/1) |
| 25 | + 'nssampn2l', # Tearing Mode Amplitude (rotating 3/2) |
| 26 | + 'nssfrqn2l', # Tearing Mode Frequency (rotating 3/2) |
| 27 | + 'dusbradial', # LM Amplitude |
| 28 | + 'dssdenest', # Plasma Density |
| 29 | + r'\bol_l15_p', # Radiated Power core |
| 30 | + r'\bol_l03_p', # Radiated Power Edge |
| 31 | + 'bmspinj', # Total Beam Power |
| 32 | + 'bmstinj', ] # Total Beam Torque |
| 33 | +# 'pcechpwrf'] #Total ECH Power Not always on! |
34 | 34 |
|
35 | 35 | signal_paths = ['d3d/' + path for path in signal_paths] |
36 | 36 |
|
37 | | -### 0D EFIT signals ### |
| 37 | +# 0D EFIT signals |
38 | 38 | signal_paths += ['EFIT01/RESULTS.AEQDSK.Q95'] |
39 | | - |
40 | | -### 1D EFIT signals ### |
41 | | -#signal_paths += [ |
42 | | -#'AOT/EQU.t_e', #electron temperature profile vs rho (uniform mapping over time) |
43 | | -#'AOT/EQU.dens_e'] #electron density profile vs rho (uniform mapping over time) |
44 | 39 |
|
45 | | -#these signals seem to give more reliable data |
| 40 | +# 1D EFIT signals |
| 41 | +# signal_paths += [ |
| 42 | +# 'AOT/EQU.t_e', # electron temperature profile vs rho |
| 43 | +# 'AOT/EQU.dens_e'] # electron density profile vs rho |
| 44 | + |
| 45 | +# these signals seem to give more reliable data |
46 | 46 | signal_paths += [ |
47 | | -'ZIPFIT01/PROFILES.ETEMPFIT', #electron temperature profile vs rho (uniform mapping over time) |
48 | | -'ZIPFIT01/PROFILES.EDENSFIT'] #electron density profile vs rho (uniform mapping over time) |
| 47 | + 'ZIPFIT01/PROFILES.ETEMPFIT', # electron temperature profile vs rho |
| 48 | + 'ZIPFIT01/PROFILES.EDENSFIT'] # electron density profile vs rho |
49 | 49 |
|
50 | | -#make into list of lists format to be consistent with jet_signals.py |
| 50 | +# make into list of lists format to be consistent with jet_signals.py |
51 | 51 | signal_paths = [[path] for path in signal_paths] |
52 | 52 |
|
53 | | -#format : 'tree/signal_path' for each path |
| 53 | +# format : 'tree/signal_path' for each path |
54 | 54 | signals_dirs = signal_paths |
55 | 55 |
|
56 | | - |
| 56 | + |
57 | 57 | ################################################## |
58 | 58 | # USER SELECTIONS # |
59 | 59 | ################################################## |
|
63 | 63 | # Select signals for downloading # |
64 | 64 | ################################## |
65 | 65 |
|
66 | | -#Default pass to get_mdsplus_data.py: download all above signals |
| 66 | +# Default pass to get_mdsplus_data.py: download all above signals |
67 | 67 | download_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
68 | | -# download_masks[-1] = [False] # enable/disable temperature profile |
69 | | -# download_masks[-2] = [False] # enable/disable density profile |
| 68 | +# download_masks[-1] = [False] # enable/disable temperature profile |
| 69 | +# download_masks[-2] = [False] # enable/disable density profile |
70 | 70 |
|
71 | 71 | ####################################### |
72 | 72 | # Select signals for training/testing # |
73 | 73 | ####################################### |
74 | 74 |
|
75 | | -#Default pass to conf.py: train with all above signals |
| 75 | +# Default pass to conf.py: train with all above signals |
76 | 76 | signals_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
77 | | -signals_masks[-1] = [False] # enable/disable temperature profile |
78 | | -signals_masks[-2] = [False] # enable/disable density profile |
| 77 | +signals_masks[-1] = [False] # enable/disable temperature profile |
| 78 | +signals_masks[-2] = [False] # enable/disable density profile |
| 79 | + |
| 80 | +# num_signals = sum([group.count(True) for i, group in |
| 81 | +# enumerate(jet_signals.signals_masks)] |
79 | 82 |
|
80 | | -#num_signals = sum([group.count(True) for i,group in enumerate(jet_signals.signals_masks)] |
81 | 83 | ########################################### |
82 | 84 | # Select signals for performance analysis # |
83 | 85 | ########################################### |
84 | 86 |
|
85 | | -#User selects these by signal name |
| 87 | +# User selects these by signal name |
86 | 88 | plot_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
87 | 89 |
|
88 | | -#LaTeX strings for performance analysis, sorted in lists by signal_group |
| 90 | +# LaTeX strings for performance analysis, sorted in lists by signal_group |
89 | 91 | group_labels = [[r' $I_{plasma}$ [A]'], |
90 | | - [r' Mode L. A. [A]'], |
91 | | - [r' $P_{radiated}$ [W]'], #0d radiation, db/ |
92 | | - [r' $P_{radiated}$ [W]'],#1d radiation, db/ |
93 | | - [r' $\rho_{plasma}$ [m^-2]'], |
94 | | - [r' $L_{plasma,internal}$'], |
95 | | - [r'$\frac{d}{dt} E_{D}$ [W]'], |
96 | | - [r' $P_{input}$ [W]'], |
97 | | - [r'$E_{D}$'], |
98 | | -#ppf signal labels |
| 92 | + [r' Mode L. A. [A]'], |
| 93 | + [r' $P_{radiated}$ [W]'], # 0d radiation, db/ |
| 94 | + [r' $P_{radiated}$ [W]'], # 1d radiation, db/ |
| 95 | + [r' $\rho_{plasma}$ [m^-2]'], |
| 96 | + [r' $L_{plasma,internal}$'], |
| 97 | + [r'$\frac{d}{dt} E_{D}$ [W]'], |
| 98 | + [r' $P_{input}$ [W]'], |
| 99 | + [r'$E_{D}$'], |
| 100 | + # ppf signal labels |
99 | 101 | [r'ECE unit?']] |
0 commit comments