We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55e132 commit be1f93dCopy full SHA for be1f93d
1 file changed
opencompass/datasets/moleculariq/moleculariq_core/rewards/utils.py
@@ -6,8 +6,13 @@
6
from typing import Dict, Any
7
8
from ..properties import canonicalize_property_name
9
-from rdkit import Chem
10
-from rdkit.Chem import SanitizeMol
+
+try:
11
+ from rdkit import Chem
12
+ from rdkit.Chem import SanitizeMol
13
+except Exception:
14
+ Chem, SanitizeMol = None, None
15
16
from .._nlp.mappings import parse_natural_language
17
18
0 commit comments