main
rionid.__main__
display_nions(nions, yield_data, nuclei_names, simulated_data_dict, ref_ion, harmonics)
Filters the top N ions by yield.
Source code in src/rionid/__main__.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | |
main()
Main entry point for the command-line interface (CLI).
Parses arguments, initializes logging, and dispatches the analysis controller for one or more data files.
Source code in src/rionid/__main__.py
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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
read_masterfile(master_filename)
Reads list of filenames from a text file.
Source code in src/rionid/__main__.py
192 193 194 | |
run_controller(data_file, particles_to_simulate, alphap, ref_ion, harmonics, brho=None, fref=None, ke=None, gam=None, correct=None, ods=False, nions=None, show=True, app=None)
Unified controller: Calculates physics and launches the PyQt GUI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_file
|
str
|
Path to experimental data. |
required |
particles_to_simulate
|
str
|
Path to LISE++ file. |
required |
alphap
|
float
|
Momentum compaction factor. |
required |
ref_ion
|
str
|
Reference ion string. |
required |
harmonics
|
list
|
List of harmonics to simulate. |
required |
brho
|
float
|
Magnetic rigidity. |
None
|
fref
|
float
|
Reference frequency. |
None
|
ke
|
float
|
Kinetic energy. |
None
|
gam
|
float
|
Gamma factor. |
None
|
correct
|
list
|
Polynomial correction coefficients. |
None
|
ods
|
bool
|
Whether to export to ODS. |
False
|
nions
|
int
|
Number of top ions to display. |
None
|
show
|
bool
|
Whether to show the GUI. |
True
|
app
|
QApplication
|
The Qt application instance. |
None
|
Source code in src/rionid/__main__.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |