ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 846a063 was
c00a28ff,
checked in by krzywon, 7 years ago
|
Allow P(r) to calculate current data set or all. Update documentation and error handling.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | def enum(*sequential, **named): |
---|
2 | enums = dict(zip(sequential, range(len(sequential))), **named) |
---|
3 | return type('Enum', (), enums) |
---|
4 | |
---|
5 | WIDGETS = enum( 'W_FILENAME', #0 |
---|
6 | 'W_BACKGROUND_INPUT', #1 |
---|
7 | 'W_ESTIMATE', #2 |
---|
8 | 'W_MANUAL_INPUT', #3 |
---|
9 | 'W_QMIN', #4 |
---|
10 | 'W_QMAX', #5 |
---|
11 | 'W_SLIT_HEIGHT', #6 |
---|
12 | 'W_SLIT_WIDTH', #7 |
---|
13 | 'W_NO_TERMS', #8 |
---|
14 | 'W_NO_TERMS_SUGGEST', #9 |
---|
15 | 'W_REGULARIZATION', #10 |
---|
16 | 'W_REGULARIZATION_SUGGEST', #11 |
---|
17 | 'W_MAX_DIST', #12 |
---|
18 | 'W_EXPLORE', #13 |
---|
19 | # results |
---|
20 | 'W_RG', |
---|
21 | 'W_I_ZERO', |
---|
22 | 'W_BACKGROUND_OUTPUT', |
---|
23 | 'W_COMP_TIME', |
---|
24 | 'W_CHI_SQUARED', |
---|
25 | 'W_OSCILLATION', |
---|
26 | 'W_POS_FRACTION', |
---|
27 | 'W_SIGMA_POS_FRACTION', |
---|
28 | # bottom buttons |
---|
29 | 'W_CALCULATE_ALL', |
---|
30 | 'W_CALCULATE_VISIBLE', |
---|
31 | 'W_HELP' |
---|
32 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.