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

RuntimeWarning: invalid value encountered in true_divide #39

Open
afandiadib opened this issue Sep 22, 2020 · 1 comment
Open

RuntimeWarning: invalid value encountered in true_divide #39

afandiadib opened this issue Sep 22, 2020 · 1 comment

Comments

@afandiadib
Copy link

Hi,

I just installed forgi via pip and I got this error when I want to visualize RNA structure. It happened on some of my RNA structures.

/mnt/Data/Programs/conda/lib/python3.8/site-packages/forgi/visual/mplotlib.py:118: RuntimeWarning: invalid value encountered in true_divide
norm_vec/=ftuv.magnitude(norm_vec)

Code to reproduce:

import forgi.graph.bulge_graph as fgb
import forgi.visual.mplotlib as fvm

bg = fgb.BulgeGraph.from_dotbracket('......((((((((((((((((......))))))))))))))))((((.(((((....).))))))))(((((((....))))))).....................')
fvm.plot_rna(bg)
@mwittep
Copy link

mwittep commented Jul 25, 2022

Similar error here. I have tried 3 python versions (3.6, 3.8 and 3.9). For the following sequences I get the same error as above:

bg = fgb.BulgeGraph.from_dotbracket("((...)).(..(..))")
bg = fgb.BulgeGraph.from_dotbracket("((...)).(.(..))")

But the following one does work:

bg = fgb.BulgeGraph.from_dotbracket("((...)).((..))")

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