Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion datamol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import importlib


# The below lazy import logic is coming from openff-toolkit:
# https://github.com/openforcefield/openff-toolkit/blob/b52879569a0344878c40248ceb3bd0f90348076a/openff/toolkit/__init__.py#L44

Expand Down
1 change: 0 additions & 1 deletion datamol/_sanifix4.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from rdkit import Chem, RDLogger


logger = RDLogger.logger()


Expand Down
1 change: 0 additions & 1 deletion datamol/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import rdkit
import packaging.version


try:
__version__ = version("datamol")
except PackageNotFoundError:
Expand Down
2 changes: 1 addition & 1 deletion datamol/descriptors/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def _sasscorer(mol: Mol):
sys.path.append(os.path.join(RDConfig.RDContribDir, "SA_Score"))
try:
import sascorer # type:ignore
import sascorer # type: ignore
except ImportError:
raise ImportError(
"Could not import sascorer. If you installed rdkit-pypi with `pip`, please uninstall it and reinstall rdkit with `conda` or `mamba`."
Expand Down
2 changes: 1 addition & 1 deletion datamol/fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@


def fp_to_array(
fp: Union[np.ndarray, SparseBitVect, ExplicitBitVect, UIntSparseIntVect]
fp: Union[np.ndarray, SparseBitVect, ExplicitBitVect, UIntSparseIntVect],
) -> np.ndarray:
"""Convert rdkit fingerprint to numpy array.

Expand Down
1 change: 0 additions & 1 deletion datamol/isomers/_structural.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from rdkit import Chem
import datamol as dm


IsomerReaction = collections.namedtuple(
"IsomerReaction",
["name", "smarts", "reverse", "acyclic", "triplebond", "doublebond", "use"],
Expand Down
4 changes: 1 addition & 3 deletions datamol/molar.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"""A set of utility functions to convert between various units and formats used in drug discovery.
"""
"""A set of utility functions to convert between various units and formats used in drug discovery."""

from typing import Union
from typing import Iterable

import numpy as np


_MOLAR_SCALES = {"M": 1, "mM": 1e-3, "uM": 1e-6, "nM": 1e-9, "pM": 1e-12, "fM": 1e-15}


Expand Down
1 change: 0 additions & 1 deletion datamol/predictors/esol.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from ..descriptors.descriptors import n_rotatable_bonds
from ..descriptors.descriptors import n_aromatic_atoms_proportion


_ESOL_INTERCEPT = 0.26121066137801696
_ESOL_COEF = {
"mw": -0.0066138847738667125,
Expand Down
1 change: 0 additions & 1 deletion datamol/reactions/_reactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import datamol as dm


ATTACHING_RXN = rdChemReactions.ReactionFromSmarts("[*;h:1]>>[*:1][*]")


Expand Down
3 changes: 1 addition & 2 deletions datamol/utils/fs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""The `fs` module makes it easier to work with all type of path (the ones supported by `fsspec`).
"""
"""The `fs` module makes it easier to work with all type of path (the ones supported by `fsspec`)."""

from typing import Union
from typing import Optional
Expand Down
1 change: 0 additions & 1 deletion datamol/utils/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from loguru import logger


duration_intervals = (
("weeks", 604800), # 60 * 60 * 24 * 7
("days", 86400), # 60 * 60 * 24
Expand Down