Skip to content

Commit f93b147

Browse files
committed
Adapt to default behaviour
1 parent 7c3bfc4 commit f93b147

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

molpipeline/any2mol/auto2mol.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ def __init__(
4848
- SDFToMol
4949
"""
5050
super().__init__(name=name, n_jobs=n_jobs, uuid=uuid)
51-
elements = elements or (
52-
SmilesToMol(),
53-
InchiToMol(),
54-
BinaryToMol(),
55-
SDFToMol(),
56-
)
5751
# pipeline elements for transforming the input to a molecule
52+
if elements is None:
53+
elements = (
54+
SmilesToMol(),
55+
InchiToMol(),
56+
BinaryToMol(),
57+
SDFToMol(),
58+
)
5859
self.elements = elements
5960

6061
def pretransform_single(self, value: Any) -> OptionalMol:

0 commit comments

Comments
 (0)