Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use of deprecated scipy.misc.comb should be replaced by scipy.special.comb #6

@monocongo

Description

@monocongo

I get an error when building my project that depends upon lmoments3 on TravisCI:

AttributeError: module 'scipy.misc' has no attribute 'comb'

This appears to be related to this warning I see when I run my tests locally:

  /home/james/miniconda3/envs/climate/lib/python3.7/site-packages/lmoments3/__init__.py:177: DeprecationWarning: `comb` is deprecated!
  Importing `comb` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.comb` instead.
    coefl3 = 1.0 / 3.0 / sm.comb(n, 3, exact=True)

This is a recent issue for me, perhaps caused by an updated version of scipy in my project and/or one of its dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions