diff --git a/.travis.yml b/.travis.yml index bfbd0c2..f88a1a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,6 @@ install: - source activate test - conda install --yes numpy scipy matplotlib pip nose - pip install setuptools - - python setup.py install + - pip install . script: python test.py diff --git a/active_subspaces/subspaces.py b/active_subspaces/subspaces.py index 95642c8..667b2e8 100644 --- a/active_subspaces/subspaces.py +++ b/active_subspaces/subspaces.py @@ -170,10 +170,8 @@ def partition(self, n): the dimension of the active subspace """ - if not isinstance(n, int): - #raise TypeError('n should be an integer') - n = int(n) - print(Warning("n should be an integer. Performing conversion.")) + # Cast n as an integer. + n = int(n) m = self.eigenvecs.shape[0] if n<1 or n>m: diff --git a/setup.py b/setup.py index a95dd45..5dcdf1a 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def readme(): packages=['active_subspaces', 'active_subspaces.utils'], install_requires=[ 'numpy', - 'scipy >= 0.15.0', + 'scipy >= 0.15.0,<=1.2.2', 'matplotlib' ], test_suite='nose.collector',