Skip to content

FIX: Update num_compositions#375

Merged
mmcky merged 2 commits intoQuantEcon:masterfrom
QBatista:fix_num_compositions
Jan 3, 2018
Merged

FIX: Update num_compositions#375
mmcky merged 2 commits intoQuantEcon:masterfrom
QBatista:fix_num_compositions

Conversation

@QBatista
Copy link
Copy Markdown
Member

Use scipy.special.comb instead of scipy.misc.comb as scipy.misc.comb is deprecated in scipy 1.0.0.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 94.791% when pulling 4d91490 on QBatista:fix_num_compositions into 296e595 on QuantEcon:master.

Comment thread quantecon/gridtools.py Outdated
@@ -281,4 +281,4 @@ def num_compositions(m, n):

"""
# docs.scipy.org/doc/scipy/reference/generated/scipy.misc.comb.html
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please update this commit as well.

@oyamad oyamad added the ready label Dec 23, 2017
@sglyon
Copy link
Copy Markdown
Member

sglyon commented Dec 27, 2017

LGTM

Do we need to update a requirements.txt or something like that to note that these changes require spicy >= 1.0?

@oyamad
Copy link
Copy Markdown
Member

oyamad commented Jan 1, 2018

comb was moved to scipy.special some time ago, by scipy/scipy@c430bed.

@mmcky
Copy link
Copy Markdown
Contributor

mmcky commented Jan 2, 2018

@sglyon most of our requirements files don't specify versions (so they should default to latest). But are you suggesting we should put scipy > 1.0?

@oyamad
Copy link
Copy Markdown
Member

oyamad commented Jan 3, 2018

@mmcky I don't think we need specify a version for scipy. comb has been there in scipy.special since 0.14, and the current Anaconda has scipy 0.19.1.

@mmcky mmcky merged commit 828aaf2 into QuantEcon:master Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants