Skip to content

Commit

Permalink
Fixed #115
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas van Beek committed Jun 11, 2020
1 parent d05606c commit 3736613
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CAT/multi_ligand.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""A module for attaching multiple non-unique ligands to a single quantum dot."""

import os
from typing import (Iterable, Any, overload, Sequence, MutableSequence,
Collection, List, Union)

Expand Down Expand Up @@ -65,6 +66,12 @@ def multi_lig(qd_series, ligands, dummy=None, f=None, **kwargs): # noqa: E302
opt=kwargs['opt'],
split=kwargs['split'])

mol_format = kwargs.get('mol_format')
_path = kwargs.get('path')
if mol_format is not _path is not None:
path = os.path.join(str(_path).rsplit(os.sep, 1)[0], 'ligand')
mol_to_file(ligands, path, mol_format=mol_format)

if f is not None:
raise NotImplementedError("'f != None' is not yet implemented")

Expand Down

0 comments on commit 3736613

Please sign in to comment.