kentang2017/kinliuren

jieqi = "立夏" daygangzhi = "乙卯" hourgangzhi = "癸未"

Opened this issue · 2 comments

Hi,

This date generate this error
in compare_shehai_number
biyung_result_reorder = new_zhigangcangong_list(khead[i])[0: new_zhigangcangong_list(khead[i]).index(a[i][0])+1]
IndexError: list index out of range

if you can have a look
Thanks

Perhap you should upgrade this package first.
pip install --upgrade kinliuren

the below result is given


from kinliuren import kinliuren

kinliuren.Liuren("立夏", "乙卯", "癸未").result(0)
{'節氣': '立夏', '日期': '乙卯日癸未時', '格局': ['賊尅', '重審'], '日馬': '巳', '三傳': {'初傳': ['申', '勾', '官', '庚'], '中傳': ['戌', '雀', '妻', '壬'], '末傳': ['子', '貴', '父', '空']}, '四課': {'四課': ['未巳', '龍'], '三課': ['巳卯', '虎'], '二課': ['申午', '勾'], '一課': ['午乙', '空']}, '天地盤': {'天盤': ['酉', '戌', '亥', '子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申'], '地盤': ['未', '申', '酉', '戌', '亥', '子', '丑', '寅', '卯', '辰', '巳', '午'], '天將': ['合', '雀', '蛇', '貴', '后', '陰', '玄', '常', '虎', '空', '龍', '勾']}, '地轉天盤': {'未': '酉', '申': '戌', '酉': '亥', '戌': '子', '亥': '丑', '子': '寅', '丑': '卯', '寅': '辰', '卯': '巳', '辰': '午', '巳': '未', '午': '申'}, '地轉天將': {'未': '合', '申': '雀', '酉': '蛇', '戌': '貴', '亥': '后', '子': '陰', '丑': '玄', '寅': '常', '卯': '虎', '辰': '空', '巳': '龍', '午': '勾'}}

I Will have a look

Thanks !