-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum_vals.py
55 lines (47 loc) · 1.15 KB
/
enum_vals.py
1
2
3
4
5
6
7
8
9
10
11
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
"""
Enums are names bound to unique, constant values.
Unlike a list, enums are immutable, so the programmer gets warned
that they can't do illegal actions such as editing the value, or incorrect capitalisation
"""
import enum
class Regions(enum.Enum):
A1 = enum.auto()
A2 = enum.auto()
A3 = enum.auto()
A4 = enum.auto()
A5 = enum.auto()
A6 = enum.auto()
A7 = enum.auto()
B = enum.auto()
C = enum.auto()
D = enum.auto()
W = enum.auto()
class Cases(enum.Enum):
ULS = enum.auto()
SLS = enum.auto()
FAT = enum.auto()
class Directions(enum.Enum):
ANY = enum.auto()
N = enum.auto()
NE = enum.auto()
E = enum.auto()
SE = enum.auto()
S = enum.auto()
SW = enum.auto()
W = enum.auto()
NW = enum.auto()
class Significance(enum.Enum):
MAJOR = enum.auto()
MINOR = enum.auto()
class Wind_angle(enum.Enum):
NORMAL = enum.auto()
ANGLE_45 = enum.auto()
PARALLEL = enum.auto()
class Structure_type(enum.Enum):
RHS = enum.auto()
CHS = enum.auto()
SIGN = enum.auto()
class Frame(enum.Enum):
NONE = enum.auto()
SINGLE = enum.auto()
MULTIPLE = enum.auto()