Commit cd7abbee authored by nd-02110114's avatar nd-02110114
Browse files

🚨 apply flake8 to deepchem.feat

parent 5faff89c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -133,7 +133,6 @@ class NeighborListAtomicCoordinates(Featurizer):
      mol: rdkit Mol
        To be featurized.
    """
    N = mol.GetNumAtoms()
    # TODO(rbharath): Should this return a list?
    bohr_coords = self.coordinates_featurizer._featurize(mol)[0]
    coords = get_coords(mol)
@@ -168,9 +167,9 @@ class NeighborListComplexAtomicCoordinates(ComplexFeaturizer):

    Parameters
    ----------
    mol_pdb_file: Str 
    mol_pdb_file: str
      Filename for ligand pdb file.
    protein_pdb_file: Str 
    protein_pdb_file: str
      Filename for protein pdb file.
    """
    mol_coords, ob_mol = load_molecule(mol_pdb_file)
@@ -245,7 +244,7 @@ class ComplexNeighborListFragmentAtomicCoordinates(ComplexFeaturizer):

      system_coords, system_neighbor_list, system_z = self.featurize_mol(
          system_coords, system_mol, self.complex_num_atoms)
    except ValueError as e:
    except ValueError:
      logging.warning(
          "max_atoms was set too low. Some complexes too large and skipped")
      return None
+2 −0
Original line number Diff line number Diff line
# flake8: noqa

import numpy as np
import deepchem as dc
from deepchem.feat.base_classes import MolecularFeaturizer
+2 −0
Original line number Diff line number Diff line
"""
Data Structures used to represented molecules for convolutions.
"""
# flake8: noqa

import csv
import random
import numpy as np
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ import numpy as np

from deepchem.utils.typing import RDKitMol
from deepchem.feat.base_classes import MolecularFeaturizer
import numpy as np


class CircularFingerprint(MolecularFeaturizer):
+1 −0
Original line number Diff line number Diff line
# flake8: noqa
import logging
import time
import hashlib
Loading