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

little bug of biotite.structure.dot_bracket_from_structure #556

Closed
flyfyyfyy opened this issue Apr 23, 2024 · 1 comment · Fixed by #573
Closed

little bug of biotite.structure.dot_bracket_from_structure #556

flyfyyfyy opened this issue Apr 23, 2024 · 1 comment · Fixed by #573
Assignees

Comments

@flyfyyfyy
Copy link

When the input of biotite.structure.dot_bracket_from_structure doesn't have any base pairs, biotite.structure.base_pairs will return an empty NumPy array array([], dtype=float64).
When np.sort(basepairs, axis=1) is applied to this empty array, it will raise an AxisError: axis 1 is out of bounds for array of dimension 1, causing the dot_bracket_from_structure function to fail.

Of course, that was just a minor issue. Your package is really powerful.

@t0mdavid-m t0mdavid-m self-assigned this Apr 23, 2024
@t0mdavid-m
Copy link
Member

Hi,
thanks a lot for the bug report! I will look into it over the next couple days.

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

Successfully merging a pull request may close this issue.

2 participants