Skip to content

Commit

Permalink
added alternative module location for comb
Browse files Browse the repository at this point in the history
In newer versions, scipy's `comb` is moved from `scipy.misc` to `scipy.special`.
  • Loading branch information
realjanpaulus committed Oct 26, 2019
1 parent f073313 commit 32a12ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion delta/deltas.py
Expand Up @@ -48,7 +48,10 @@
import pandas as pd
import scipy.spatial.distance as ssd
from scipy import linalg
from scipy.misc import comb
try:
from scipy.misc import comb
except ImportError:
from scipy.special import comb
from itertools import combinations
from functools import update_wrapper
from .util import Metadata
Expand Down

0 comments on commit 32a12ca

Please sign in to comment.