Skip to content

Fix deprecation warnings #57

@Kartstig

Description

@Kartstig

Background

When running tests, the following warnings are given:

=============================== warnings summary ===============================
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/deepchem/feat/molecule_featurizers/sparse_matrix_one_hot_featurizer.py:87
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/deepchem/feat/molecule_featurizers/sparse_matrix_one_hot_featurizer.py:87
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/deepchem/feat/molecule_featurizers/sparse_matrix_one_hot_featurizer.py:87: DeprecationWarning: Please use `spmatrix` from the `scipy.sparse` namespace, the `scipy.sparse.base` namespace is deprecated.
    def untransform(self, one_hot_vectors: scipy.sparse.base.spmatrix) -> str:

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/tensorflow/python/framework/dtypes.py:35
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/tensorflow/python/framework/dtypes.py:35
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/tensorflow/python/framework/dtypes.py:35: DeprecationWarning: ml_dtypes.float8_e4m3b11 is deprecated. Use ml_dtypes.float8_e4m3b11fnuz
    from tensorflow.tsl.python.lib.core import pywrap_ml_dtypes

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:20
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:20
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:20: DeprecationWarning: The module rdkit.Chem.MolStandardize.standardize is deprecated and will be removed in the next release.
    from .standardize import (Standardizer, canonicalize_tautomer_smiles,

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:23
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:23
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:23: DeprecationWarning: The module rdkit.Chem.MolStandardize.charge is deprecated and will be removed in the next release.
    from .charge import ACID_BASE_PAIRS, CHARGE_CORRECTIONS, Reionizer, Uncharger

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:24
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:24
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:24: DeprecationWarning: The module rdkit.Chem.MolStandardize.fragment is deprecated and will be removed in the next release.
    from .fragment import PREFER_ORGANIC, FragmentRemover, LargestFragmentChooser

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:25
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:25
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:25: DeprecationWarning: The module rdkit.Chem.MolStandardize.metal is deprecated and will be removed in the next release.
    from .metal import MetalDisconnector

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:26
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:26
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:26: DeprecationWarning: The module rdkit.Chem.MolStandardize.normalize is deprecated and will be removed in the next release.
    from .normalize import MAX_RESTARTS, NORMALIZATIONS, Normalizer

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:27
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:27
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/standardize.py:27: DeprecationWarning: The module rdkit.Chem.MolStandardize.tautomer is deprecated and will be removed in the next release.
    from .tautomer import (MAX_TAUTOMERS, TAUTOMER_SCORES, TAUTOMER_TRANSFORMS, TautomerCanonicalizer,

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:22
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:22
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/__init__.py:22: DeprecationWarning: The module rdkit.Chem.MolStandardize.validate is deprecated and will be removed in the next release.
    from .validate import Validator, validate_smiles

../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/validate.py:24
../../../../../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/validate.py:24
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/rdkit/Chem/MolStandardize/validate.py:24: DeprecationWarning: The module rdkit.Chem.MolStandardize.validations is deprecated and will be removed in the next release.
    from .validations import VALIDATIONS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions