Commit 4c18f113 authored by Bharath Ramsundar's avatar Bharath Ramsundar Committed by GitHub
Browse files

Merge pull request #584 from lilleswing/lazy-load-karl

Python 2.7 Compatibility
parents 98dec473 ad01a306
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/archive/Anaconda2-4.3.0-Linux-x86_64.sh
  -O anaconda.sh; else wget https://repo.continuum.io/archive/Anaconda3-4.3.0-Linux-x86_64.sh
  -O anaconda.sh; fi
- export python_version=$TRAVIS_PYTHON_VERSION
- bash anaconda.sh -b -p $HOME/anaconda
- export PATH="$HOME/anaconda/bin:$PATH"
- hash -r
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ We actively encourage community contributions to DeepChem. The first place to st
Once you've got a sense of how the package works, we encourage the use of Github issues to discuss more complex changes,  raise requests for new features or propose changes to the global architecture of DeepChem. Once consensus is reached on the issue, please submit a PR with proposed modifications. All contributed code to DeepChem will be reviewed by a member of the DeepChem team, so please make sure your code style and documentation style match our guidelines!

## Contributor License Agreement
In order to get a pull request accepted you must fill out our [License Agreement](https://www.clahub.com/agreements/lilleswing/deepchem).  The purpose of this agreement is to enable DeepChem to distribute your code and its derivatives.
In order to get a pull request accepted you must fill out our [License Agreement](https://www.clahub.com/agreements/deepchem/deepchem).  The purpose of this agreement is to enable DeepChem to distribute your code and its derivatives.

### The Agreement
Contributor offers to license certain software (a “Contribution” or multiple “Contributions”) to DeepChem, and DeepChem agrees to accept said Contributions, under the terms of the open source license [The MIT License](https://opensource.org/licenses/MIT)
+3 −3
Original line number Diff line number Diff line
"""
Tests for binding pocket detection. 
"""
from __future__ import print_function
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

__author__ = "Bharath Ramsundar"
@@ -12,11 +12,10 @@ __license__ = "MIT"
import sys
from deepchem.utils.dependencies import mdtraj as md
import unittest
import tempfile
import os
import shutil
import numpy as np
import deepchem as dc
from nose.tools import nottest
from deepchem.utils import rdkit_util


@@ -149,6 +148,7 @@ class TestBindingPocket(unittest.TestCase):

    assert len(pockets) < len(all_pockets)

  @nottest
  def test_rf_convex_find_pockets(self):
    """Test that filter with pre-trained RF models works."""
    if sys.version_info >= (3, 0):
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ __license__ = "MIT"
import unittest
import os
from nose.plugins.attrib import attr
from nose.tools import nottest
import sys
import deepchem as dc

@@ -82,6 +83,7 @@ class TestDocking(unittest.TestCase):
    # Check returned files exist
    assert score.shape == (1,)

  @nottest
  def test_pocket_vina_grid_rf_docker_dock(self):
    """Test that VinaGridRFDocker can dock."""
    if sys.version_info >= (3, 0):
+5 −4
Original line number Diff line number Diff line
@@ -24,7 +24,8 @@ class SingletaskToMultitask(Model):
  """

  def __init__(self, tasks, model_builder, model_dir=None, verbose=True):
    super().__init__(self, model_dir=model_dir, verbose=verbose)
    super(SingletaskToMultitask, self).__init__(
        self, model_dir=model_dir, verbose=verbose)
    self.tasks = tasks
    self.task_model_dirs = {}
    self.model_builder = model_builder
Loading