source: sasview/src/sas/qtgui/Perspectives/Corfunc/CorfuncUtils.py @ 9634f86

Last change on this file since 9634f86 was 9634f86, checked in by Adam Washington <adam.washington@…>, 7 years ago

All the numbers in the model

  • Property mode set to 100644
File size: 592 bytes
Line 
1def enum(*sequential, **named):
2    enums = dict(zip(sequential, range(len(sequential))), **named)
3    return type('Enum', (), enums)
4
5WIDGETS = enum( 'W_QMIN',
6                'W_QMAX',
7                'W_QCUTOFF',
8                'W_BACKGROUND',
9                'W_TRANSFORM',
10                'W_GUINIERA',
11                'W_GUINIERB',
12                'W_PORODK',
13                'W_PORODSIGMA',
14                'W_CORETHICK',
15                'W_INTTHICK',
16                'W_HARDBLOCK',
17                'W_CRYSTAL',
18                'W_POLY',
19                'W_PERIOD',
20                )
Note: See TracBrowser for help on using the repository browser.