EarthlyBranch
Bases: MixEnum
The EarthlyBranch (地支) Enum class.
Source code in src/ichingpy/enum/branch.py
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 |
|
label
property
writable
¶
Return the label of the EarthlyBranch.
label_with_phase
property
¶
Return the label of the EarthlyBranch.
phase
property
¶
Return the FivePhases associated with the EarthlyBranch.
__add__(other)
¶
Add an integer or an EarthlyBranch to the EarthlyBranch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other
|
int
|
The integer to add to the EarthlyBranch. |
required |
Returns:
Name | Type | Description |
---|---|---|
EarthlyBranch |
EarthlyBranch
|
The resulting EarthlyBranch after addition. |
Source code in src/ichingpy/enum/branch.py
62 63 64 65 66 67 68 69 70 71 |
|
__sub__(other)
¶
Subtract an integer or an EarthlyBranch from the EarthlyBranch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other
|
int
|
The integer to subtract from the EarthlyBranch. |
required |
Returns:
Name | Type | Description |
---|---|---|
EarthlyBranch |
EarthlyBranch
|
The resulting EarthlyBranch after subtraction. |
Source code in src/ichingpy/enum/branch.py
76 77 78 79 80 81 82 83 84 85 |
|