Skip to content

Commit

Permalink
Merge pull request deepchem#1777 from deepchem/future
Browse files Browse the repository at this point in the history
Remove unnecessary future statements
  • Loading branch information
Bharath Ramsundar authored Mar 15, 2020
2 parents 273e6af + 530254d commit 26ecc32
Show file tree
Hide file tree
Showing 112 changed files with 0 additions and 349 deletions.
3 changes: 0 additions & 3 deletions deepchem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Imports all submodules
"""
from __future__ import division
from __future__ import unicode_literals

__version__ = '2.3.0'

import deepchem.data
Expand Down
4 changes: 0 additions & 4 deletions deepchem/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
Gathers all datasets in one place for convenient imports
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

# TODO(rbharath): Get rid of * import
from deepchem.data.datasets import pad_features
from deepchem.data.datasets import pad_batch
Expand Down
2 changes: 0 additions & 2 deletions deepchem/data/data_loader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Process an input dataset into a format suitable for machine learning.
"""
from __future__ import division
from __future__ import unicode_literals
import os
import gzip
import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions deepchem/data/datasets.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Contains wrapper class for datasets.
"""
from __future__ import division
from __future__ import unicode_literals
import json
import os
import math
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/supports.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Sample supports from datasets.
"""
from __future__ import division
from __future__ import unicode_literals

import logging
import time
import numpy as np
Expand Down
4 changes: 0 additions & 4 deletions deepchem/data/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
General API for testing dataset objects
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_data_loader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for FeaturizedSamples class
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for dataset creation
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_fasta_loader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests that FASTA files can be loaded.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__license__ = "MIT"

Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_image_dataset.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for ImageDataset class
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_image_loader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for ImageLoader.
"""
from __future__ import division
from __future__ import unicode_literals

import os
import unittest
import tempfile
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_load.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Testing singletask/multitask data loading capabilities.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_merge.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Testing singletask/multitask dataset merging
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_reload.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Testing reload.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_shuffle.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Testing singletask/multitask dataset shuffling
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/data/tests/test_support_generator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Simple Tests for Support Generation
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Han Altae-Tran and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
4 changes: 0 additions & 4 deletions deepchem/dock/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
Imports all submodules
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from deepchem.dock.pose_generation import PoseGenerator
from deepchem.dock.pose_generation import VinaPoseGenerator
from deepchem.dock.pose_scoring import PoseScorer
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/binding_pocket.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Computes putative binding pockets on protein.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2017, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/docking.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Docks protein-ligand pairs
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/pose_generation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Generates protein-ligand docked poses using Autodock Vina.
"""
from __future__ import division
from __future__ import unicode_literals

from deepchem.utils import mol_xyz_util

__author__ = "Bharath Ramsundar"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/pose_scoring.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Scores protein-ligand poses using DeepChem.
"""
from __future__ import division
from __future__ import unicode_literals

from deepchem.feat import RdkitGridFeaturizer

__author__ = "Bharath Ramsundar"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/tests/test_binding_pocket.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for binding pocket detection.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/tests/test_docking.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for Docking
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/tests/test_pose_generation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for Pose Generation
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/dock/tests/test_pose_scoring.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for Pose Scoring
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
4 changes: 0 additions & 4 deletions deepchem/feat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
Making it easy to import in classes.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/atomic_coordinates.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Atomic coordinate featurizer.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Joseph Gomes and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/basic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Basic molecular features.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Steven Kearnes"
__copyright__ = "Copyright 2014, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/binding_pocket_features.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Featurizes proposed binding pockets.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2017, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/coulomb_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
See Montavon et al., _New Journal of Physics_ __15__ (2013) 095003.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Steven Kearnes"
__copyright__ = "Copyright 2014, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/fingerprints.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Topological fingerprints.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Steven Kearnes"
__copyright__ = "Copyright 2014, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/graph_features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division
from __future__ import unicode_literals

import numpy as np
from rdkit import Chem

Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/mol_graphs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Data Structures used to represented molecules for convolutions.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Han Altae-Tran and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/nnscore_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Helper Classes and Functions for docking fingerprint computation.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar and Jacob Durrant"
__license__ = "GNU General Public License"

Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/raw_featurizer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import unicode_literals

from deepchem.feat import Featurizer


Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/rdkit_grid_featurizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar, Evan Feinberg, and Karl Leswing"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/smiles_featurizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
SmilesToImage featurizer for ChemCeption models taken from https://arxiv.org/abs/1710.02238
"""

from __future__ import division
from __future__ import unicode_literals

__author__ = "Vignesh Ram Somnath"
__license__ = "MIT"

Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/tests/test_graph_features.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for ConvMolFeaturizer.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Han Altae-Tran and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/tests/test_mol_graphs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for Molecular Graph data structures.
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Han Altae-Tran and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
3 changes: 0 additions & 3 deletions deepchem/feat/tests/test_sdf_reader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Tests for importing .sdf files
"""
from __future__ import division
from __future__ import unicode_literals

__author__ = "Joseph Gomes"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
Expand Down
Loading

0 comments on commit 26ecc32

Please sign in to comment.