File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33# pylint: disable=too-many-arguments
44
5- import warnings
65from collections .abc import Iterable
76from typing import Any , Self
87
98import numpy as np
109import numpy .typing as npt
11-
12- try :
13- from chemprop .data import MoleculeDatapoint , MoleculeDataset
14- from chemprop .featurizers .base import GraphFeaturizer , VectorFeaturizer
15-
16- from molpipeline .estimators .chemprop .featurizer_wrapper .graph_wrapper import (
17- SimpleMoleculeMolGraphFeaturizer ,
18- )
19- except ImportError :
20- warnings .warn (
21- "chemprop not installed. MolToChemprop will not work." ,
22- ImportWarning ,
23- stacklevel = 2 ,
24- )
25-
10+ from chemprop .data import MoleculeDatapoint , MoleculeDataset
11+ from chemprop .featurizers .base import GraphFeaturizer , VectorFeaturizer
2612
2713from molpipeline .abstract_pipeline_elements .core import MolToAnyPipelineElement
14+ from molpipeline .estimators .chemprop .featurizer_wrapper .graph_wrapper import (
15+ SimpleMoleculeMolGraphFeaturizer ,
16+ )
2817from molpipeline .utils .molpipeline_types import RDKitMol
2918
3019
You can’t perform that action at this time.
0 commit comments