crv_coeffs.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:transmutagen 作者: ergs 项目源码 文件源码
def _parse_coeffs(args):
    file = args.file
    check_existing = args.check_existing

    _coeffs = parse_crv_coeffs(file=file)

    if check_existing:
        for n in sorted(coeffs):
            for v in 'pq':
                print('Checking against', n, v)
                if _coeffs[n][v] == coeffs[n][v]:
                    print(n, v, "matches")
                else:
                    print(n, v, "doesn't match")
                    print(v, 'diff:')
                    print('\n'.join(difflib.ndiff(_coeffs[n][v], coeffs[n][v])))
    else:
        pprint.pprint(_coeffs, width=20)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号