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

关于find_start_end_nodes(label_pc, pair_to_check, G_nx)这个函数的一些问题 #3

Open
x-jeff opened this issue Jul 4, 2024 · 3 comments

Comments

@x-jeff
Copy link

x-jeff commented Jul 4, 2024

作者,您好,

最近在研究TaG-Net血管补全部分的代码,在看到find_start_end_nodes这个函数时,发现有如下问题:

        if label in SA_label:
            if len(list(set(pair_to_check).intersection(set([12, 14]))))==2:
                print('{} has 12 and 14'.format(patient))
                if [1,12] in label_pairs:
                    flag_1214 = 1
                    break
                else:
                    idx_label_one = np.nonzero(label_pc == 1)
                    idx_label_one = list(idx_label_one[0])
                    label_one_one_list = [idx for idx in idx_label_one if degree_list[int(idx)] == 1]
                    degree_one_list = [idx for idx in (degree_one_list + label_one_one_list)]

其中,patient和label_pairs两个变量并未定义,如果代码走到这个if分支则会报错。
此外,还有一个问题,为什么会有[1, 12]?BCT和L-VA之间会有连接吗?

希望作者可以帮助解答困惑,非常感谢~

@PRESENT-Y
Copy link
Owner

PRESENT-Y commented Jul 6, 2024 via email

@x-jeff
Copy link
Author

x-jeff commented Jul 9, 2024

感谢回答。
那这个分支的代码中,patient和label_pairs两个变量并未定义,这个问题后续会解决吗?多谢~

@PRESENT-Y
Copy link
Owner

PRESENT-Y commented Jul 9, 2024 via email

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