From b765cfbc00248869337631b37c08b6c29d365962 Mon Sep 17 00:00:00 2001 From: Ken Tang <34528743+kentang2017@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:16:18 +0800 Subject: [PATCH] Update ichingshifa.py --- ichingshifa/ichingshifa.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ichingshifa/ichingshifa.py b/ichingshifa/ichingshifa.py index 1204017..0e30553 100644 --- a/ichingshifa/ichingshifa.py +++ b/ichingshifa/ichingshifa.py @@ -556,7 +556,7 @@ def innate_cegui(self, year, month, day, hour, minute): #後天策軌數 def acquired_cegui(self, year, month, day, hour, minute): - acquired_gua = list("o坎坤震巽坤乾兌艮離") + acquired_gua = list("o坎坤震巽o乾兌艮離") innate_kinkun_num = {tuple([7,9]):768,tuple([6,8]):672} dongyao_position = {tuple([0,1,2]):"下卦",tuple([3,4,5]):"上卦"} gua = self.qigua_time(year, month, day, hour, minute).get("大衍筮法")[0] @@ -580,10 +580,11 @@ def acquired_cegui(self, year, month, day, hour, minute): if innate_num < 10000: innate_num = str(innate_num).zfill(5) num_to_wuxing = dict(zip(list(range(0,10)),list("空水火木金土水火木金土"))) + ac_num = [cn2an.transform(str(i), "an2cn") for i in list(str(innate_num))] return [list("萬元會運世"), [cn2an.transform(str(i), "an2cn") for i in list(str(innate_num))], [dict(zip(range(0,10), acquired_gua)).get(int(i)) for i in list(str(innate_num))], - [num_to_wuxing.get(int(i)) for i in list(str(innate_num))]] + [num_to_wuxing.get(int(i)) for i in list(str(innate_num))]], acquire_num_dict.get("".join(ac_num)) def display_pan_m(self, year, month, day, hour, minute, mgua): gz = self.gangzhi(year, month, day, hour, minute)