Hexagram
Bases: BaseModel
A Hexagram (64卦之一) consists of an inner Trigram (内卦) and an outer Trigram (外卦).
Source code in src/ichingpy/model/hexagram.py
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 100 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 |
|
lines
property
¶
Get the lines of the Hexagram. 返回卦之六爻。
transformed
cached
property
¶
Get the transformed Hexagram (变卦).
values
property
¶
Get the values of the Hexagram. 返回卦之六爻之数。
from_binary(lines)
classmethod
¶
Create a new instance of the Hexagram class from a list of binary integers.
Source code in src/ichingpy/model/hexagram.py
64 65 66 67 68 69 |
|
from_datetime(dt)
classmethod
¶
Create a new instance of the Hexagram class from a datetime object. 八字起卦: 1. 年月日三支之和除以8取余为外卦之数,余数0作8 2. 年月日时四支之和除以8取余为内卦之数,余数0作8 3. 年月日时四支之和除以6取余为变爻之数,余数0作6
Source code in src/ichingpy/model/hexagram.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
|
from_lines(lines)
classmethod
¶
Create a new instance of the Hexagram class from a list of Lines.
Source code in src/ichingpy/model/hexagram.py
54 55 56 57 58 59 60 61 62 |
|
from_three_coins()
classmethod
¶
Create a new instance of the Hexagram class from tossing three coins six times (增删卜易). two heads: lesser yang 少阳 one head: lesser yin 少阴 zero head: greater yang 太阳 (变爻) three heads: greater yin 太阴 (变爻)
Source code in src/ichingpy/model/hexagram.py
71 72 73 74 75 76 77 78 79 80 81 82 |
|
from_yarrow_stalks()
classmethod
¶
Create a new instance of the Hexagram class from ... (蓍草起卦).
Source code in src/ichingpy/model/hexagram.py
120 121 122 123 124 125 126 |
|
random()
classmethod
¶
Create a random Hexagram instance. This will
Source code in src/ichingpy/model/hexagram.py
84 85 86 87 |
|