ZishuoYang / UT-Backplane-mapping

MIT License
0 stars 0 forks source link

Possible error on checking depopulation components #72

Closed yipengsun closed 5 years ago

yipengsun commented 5 years ago

Currently:

    if True in map(lambda x: bool(re.search(r'^JP8|^JP9|^JP10|^JP11', x[0])), components):
        if True not in map(lambda x: bool(re.search(r'^RB_\d+|^RBSP\d+|^RxCB_\d+', x[0])), components):
            print("No depopulation component found in {}".format(diff_net))
    # for Beta variant:
    else:
        if True not in map(lambda x: bool(re.search(r'^RB_\d+|^RBSP\d+|^RxCB_\d+', x[0])), components):
            print("No depopulation component found in {}".format(diff_net))

The re.search part is the same for both beta and beta special.

ZishuoYang commented 5 years ago

Thanks for finding this! I need to think more about it but probably for beta it should be re.search(r'^RB_\d+|^RxCB_\d+', x[0]) instead.

ZishuoYang commented 5 years ago

No change in error log after fixing the bug. Will close this after committing fix.