|
| 1 | +#JET signal hierarchy |
| 2 | +#------------------------------------------------------------------------# |
| 3 | +#User only needs to look at 1st and last sections |
| 4 | +# - conf.py only needs to import signals_dirs and signals_masks |
| 5 | +# - get_mdsplus_data.py only needs signals_dirs and download_masks |
| 6 | +# - performance_analysis_utils.py needs : |
| 7 | +# - signals_dirs, plot_masks, ppf_labels, jpf_labels |
| 8 | +#------------------------------------------------------------------------# |
| 9 | +################ |
| 10 | +# Signal names # |
| 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 |
| 15 | + |
| 16 | + |
| 17 | +### 0D signals ### |
| 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 |
| 34 | + |
| 35 | +signal_paths = ['d3d/' + path for path in signal_paths] |
| 36 | + |
| 37 | +### 1D EFIT signals ### |
| 38 | +signal_paths += [ |
| 39 | +'AOT/EQU.te', #electron temperature profile vs rho (uniform mapping over time) |
| 40 | +'AOT/EQU.dens_e'] #electron density profile vs rho (uniform mapping over time) |
| 41 | + |
| 42 | +#make into list of lists format to be consistent with jet_signals.py |
| 43 | +signal_paths = [[path] for path in signal_paths] |
| 44 | + |
| 45 | +#format : 'tree/signal_path' for each path |
| 46 | +signals_dirs = signal_paths |
| 47 | + |
| 48 | + |
| 49 | +################################################## |
| 50 | +# USER SELECTIONS # |
| 51 | +################################################## |
| 52 | + |
| 53 | + |
| 54 | +################################## |
| 55 | +# Select signals for downloading # |
| 56 | +################################## |
| 57 | + |
| 58 | +#Default pass to get_mdsplus_data.py: download all above signals |
| 59 | +download_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
| 60 | +# download_masks[-1] = [False] # enable/disable temperature profile |
| 61 | +# download_masks[-2] = [False] # enable/disable density profile |
| 62 | + |
| 63 | +####################################### |
| 64 | +# Select signals for training/testing # |
| 65 | +####################################### |
| 66 | + |
| 67 | +#Default pass to conf.py: train with all above signals |
| 68 | +signals_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
| 69 | +signals_masks[-1] = [False] # enable/disable temperature profile |
| 70 | +signals_masks[-2] = [False] # enable/disable density profile |
| 71 | + |
| 72 | +#num_signals = sum([group.count(True) for i,group in enumerate(jet_signals.signals_masks)] |
| 73 | +########################################### |
| 74 | +# Select signals for performance analysis # |
| 75 | +########################################### |
| 76 | + |
| 77 | +#User selects these by signal name |
| 78 | +plot_masks = [[True]*len(sig_list) for sig_list in signals_dirs] |
| 79 | + |
| 80 | +#LaTeX strings for performance analysis, sorted in lists by signal_group |
| 81 | +group_labels = [[r' $I_{plasma}$ [A]'], |
| 82 | + [r' Mode L. A. [A]'], |
| 83 | + [r' $P_{radiated}$ [W]'], #0d radiation, db/ |
| 84 | + [r' $P_{radiated}$ [W]'],#1d radiation, db/ |
| 85 | + [r' $\rho_{plasma}$ [m^-2]'], |
| 86 | + [r' $L_{plasma,internal}$'], |
| 87 | + [r'$\frac{d}{dt} E_{D}$ [W]'], |
| 88 | + [r' $P_{input}$ [W]'], |
| 89 | + [r'$E_{D}$'], |
| 90 | +#ppf signal labels |
| 91 | + [r'ECE unit?']] |
0 commit comments