Skip to content

Commit

Permalink
moving import in draw function
Browse files Browse the repository at this point in the history
  • Loading branch information
wiederm committed Jan 18, 2022
1 parent 6bf2be8 commit 07bc18a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkasolver/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np
import svgutils.transform as sg
import torch
from IPython.display import SVG
from rdkit import Chem, RDLogger
from rdkit.Chem import Draw
from torch_geometric.loader import DataLoader
Expand Down Expand Up @@ -490,6 +489,8 @@ def draw_pka_reactions(
Draws protonation states.
file can be saved as png using `write_png_to_file` parameter.
"""
from IPython.display import SVG

draw_pairs, pair_atoms, legend = [], [], []
for i in range(len(protonation_states)):

Expand Down

0 comments on commit 07bc18a

Please sign in to comment.