Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

六神不对 #3

Open
lionkingc opened this issue Jul 26, 2022 · 7 comments
Open

六神不对 #3

lionkingc opened this issue Jul 26, 2022 · 7 comments
Assignees

Comments

@lionkingc
Copy link

【排六神口诀】 甲乙起青龙 丙丁起朱雀 戊日起勾陈 己日起腾蛇 庚辛起白虎 壬癸起玄武

庚日输出的却是
'day': '庚辰', 'hour': '癸未'}}, 'god6': ('螣蛇', '白虎', '玄武', '青龙', '朱雀', '勾陈'),

@bopo
Copy link
Owner

bopo commented Jul 27, 2022

好的,多谢,我会修改

@lionkingc
Copy link
Author

还有一个不知是否算是错误的地方,就是bian 变卦中的六亲, 程序中是按变卦所在的本宫卦来定的,而不是按初始卦所属的本宫卦来定的六亲.

{'params': [2, 3, 3, 2, 4, 3], 'gender': '男', 'title': None, 'guaci': False, 'solar': <Arrow [2019-12-25T00:20:00+00:00]>, 'lunar': {'xkong': '辰巳', *****gz'***dong': [1, 2, 4, 5],
'name': '山风蛊', 'mark': '011001', 'gong': 4, 'shiy': (4, 1, 7), 'qin6': ['妻财', '父母', '官鬼', '妻财', '父母', '兄弟'], 'qinx': ['辛丑土', '辛亥水', '辛酉金', '丙戌土', '丙子水', '丙寅木'],

'bian': {'name': '水地比', 'mark': '000010', 'qin6': ['兄弟', '父母', '官鬼', '子孙', '兄弟', '妻财'], 'qinx': ['乙未土', '乙巳火', '乙卯木', '戊申金', '戊戌土', '戊子水']},

原卦山风蛊属于巽宫属木, 变卦水地比, 其六亲应该按木来定
222

***当然如果是贵派的规则是这样的话,那这里也不能算是错误, 市面上主流软件是按原卦所在卦宫的五行来定的.

@lionkingc
Copy link
Author

世应也有点小BUG , 地天泰卦的世爻为3, 应爻为6

{'params': [1, 3, 1, 2, 2, 4], 'name': '地天泰 'shiy': (3, 0, 3), '
row 里的数据:
'name': '地天泰', 'mark': [' ', ' ', '` ', '', '', '``'], 'gong': 7, 'shiy': [' ', ' ', '世', ' ', ' ', ' '],

    for x in range(0, 6):
        if x == self.data['shiy'][0] - 1:
            shiy.append('世')
        elif x == self.data['shiy'][1] - 1:
            shiy.append('应')
        else:
            shiy.append('  ')

当应爻为0时 一减变负1了

@lionkingc
Copy link
Author

# 人同游魂人变归
if wai[1] == nei[1]:
    if wai[0] != nei[0] and wai[2] != nei[2]:
        return shiy(4, 6)  # , Hun
else:
    if wai[0] == nei[0] and wai[2] == nei[2]:
        return shiy(4, 7)  # , Hun

归魂卦世爻为3 此处返回4 , 需要修改

@lionkingc
Copy link
Author

归魂卦的六亲是不对的,原因是utils.py里 判断六爻卦的卦宫名时,优先判读了if index in (1, 2, 3, 6)
而归魂卦的世爻也在3爻,被这个条件带走了.
解决: elif hun=='归魂' 这个条件调到前面即可

@bopo
Copy link
Owner

bopo commented Oct 30, 2022

好的,近期会修改

@bopo
Copy link
Owner

bopo commented Oct 31, 2022

卦来定的,而不是按初始卦所属的本宫卦来定的六亲.

非常感谢,近期修改

@bopo bopo self-assigned this Nov 4, 2022
@bopo bopo closed this as completed Nov 4, 2022
@bopo bopo reopened this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants