-
Notifications
You must be signed in to change notification settings - Fork 29
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
Possible Bug in separate_lines.py #124
Comments
Thanks a lot for reporting this @LucPol98! @vahidrezanezhad can you please have a look at the described issue and maybe also check why the code is repeated in two separate places? |
The code is repeated twice because it is used in two different functions and I think that is intentional. I only pointed out the fact that it was in two different places because the correction I think should be done everywhere. Maybe you could make it a common function that is called (as I did in my repo edit of yours). If I find any other critical issues I will let you know |
Sure, I'll address the described issue and investigate the code duplication. |
Hi, I think I have spotted a bug in the separate_lines.py file, however, I would like confirmation from the creators of the code. Specifically, within this file some peaks are removed and to do so the list "clusters_to_be_deleted" is created as follows:
In any case, however, the first IF may have been set up wrongly in that it double checks the length of the same previously set list (
arg_diff_cluster
), while in the other ELIFs the length of two different lists is checked (arg_neg_must_be_deleted
andarg_diff_cluster
) . Wasn't it perhaps intended to set the first IF with the two different lists? Or can the first IF be reduced to only one checking of:if len(arg_diff_cluster) >= 2:
NOTICE:
This portion of code is repeated twice in this file, so any corrections should be made in both of them.
Thank you :)
The text was updated successfully, but these errors were encountered: