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

Possible no caught error for single blocks #16

Open
sivico26 opened this issue Aug 17, 2023 · 0 comments
Open

Possible no caught error for single blocks #16

sivico26 opened this issue Aug 17, 2023 · 0 comments

Comments

@sivico26
Copy link

Hello there,

I just wanted to report what I think is a small error:

/home/sivico/mambaforge/envs/Phasing/bin/methphasing:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import require
Traceback (most recent call last):
  File "/home/sivico/mambaforge/envs/Phasing/bin/methphasing", line 1470, in <module>
    main(sys.argv[1:])
  File "/home/sivico/mambaforge/envs/Phasing/bin/methphasing", line 1395, in main
    max_expension_list_larger += [(phased_region_list[0][0], phased_region_list[1][0])]
IndexError: list index out of range

When I looked at the code, and considering my input, I think that this IndexError comes from the fact that the code is expecting at least 2 blocks to merge in any given sequence. If there is a sequence with a single block, instead of skipping the sequence (because there is nothing to do), it tries to index the second block that does not exist, and then the error emerges.

I hope this is helpful to you.
Sivico

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

1 participant