We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba4932 commit f34fe80Copy full SHA for f34fe80
chebai_graph/preprocessing/reader.py
@@ -2,7 +2,6 @@
2
from typing import List, Optional
3
4
import chebai.preprocessing.reader as dr
5
-import networkx as nx
6
import pysmiles as ps
7
import rdkit.Chem as Chem
8
import torch
@@ -93,6 +92,8 @@ def name(cls):
93
92
return "graph"
94
95
def _read_data(self, raw_data) -> Optional[GeomData]:
+ import networkx as nx
96
+
97
# raw_data is a SMILES string
98
try:
99
mol = ps.read_smiles(raw_data)
0 commit comments