sfs-python icon indicating copy to clipboard operation
sfs-python copied to clipboard

Find replacement for inner1d()

Open mgeier opened this issue 7 years ago • 2 comments

This deprecation warning appears on Travis-CI when using Python 3.7 (using Ubuntu Xenial):

sfs/mono/drivingfunction.py:8
  /home/travis/build/sfstoolbox/sfs-python/sfs/mono/drivingfunction.py:8: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release.
    from numpy.core.umath_tests import inner1d  # element-wise inner product

I don't know what's the best replacement for inner1d(), suggestions and PRs are very welcome!

mgeier avatar Jan 23 '19 14:01 mgeier

Here are some suggestions: https://github.com/numpy/numpy/issues/10815

hagenw avatar Jan 23 '19 14:01 hagenw

One of the benefits of inner1d was parallel processing. This might not be the case for the replacements.

spors avatar Mar 06 '19 08:03 spors