Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions active_subspaces/subspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll actually try to resolve this in master and let you merge master into this branch so you don't have to worry about it. We just need a "passing status" on this PR and there are a few ways to get there...

],
test_suite='nose.collector',
Expand Down