Skip to content

RuntimeWarning: invalid value encountered in true_divide #39

Description

@afandiadib

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions