Skip to content

Commit

Permalink
add import check in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paoxiaode committed Sep 18, 2023
1 parent 464cbeb commit be56669
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/dgl/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@
RomanEmpireDataset,
TolokersDataset,
)
from .lrgb import PeptidesStructuralDataset

# RDKit is required for OGB-LSC PCQM4Mv2 and datasets derived from it.
try:
from .lrgb import PeptidesStructuralDataset
except ImportError:
pass
from .pattern import PATTERNDataset
from .wikics import WikiCSDataset
from .yelp import YelpDataset
Expand Down

0 comments on commit be56669

Please sign in to comment.