Skip to content

Commit 8399148

Browse files
authored
Merge pull request #27 from carnby/master
support newest scipy
2 parents bb0598f + f5b46f8 commit 8399148

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

corextopic/corextopic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
import numpy as np # Tested with 1.8.0
2323
from os import makedirs
2424
from os import path
25-
from scipy.misc import logsumexp # Tested with 0.13.0
25+
try:
26+
from scipy.special import logsumexp
27+
except ImportError:
28+
from scipy.misc import logsumexp # Tested with 0.13.0
2629
import scipy.sparse as ss
2730
from six import string_types # For Python 2&3 compatible string checking
2831
from sklearn.externals import joblib

0 commit comments

Comments
 (0)