-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Closed
Labels
Milestone
Description
In #12057 the linspace is removed from the imports from core
however this broke various concatenation code in SciPy. The AxesConcetananenantatotator (it's impossible to type) has a method call specifically for linspace and hence trips up.
numpy/numpy/lib/index_tricks.py
Line 349 in 872372b
newobj = function_base.linspace(start, stop, num=size) |
There are other backwards incompatible changes for hstack
and column_stack
which were explicitly accepting generator expressions but now they don't.
Xref : scipy/scipy#9405
Reproducing code example:
The simplest would be
>>> import numpy as np
>>> np.r_[0:36:100j]
Error message:
Traceback (most recent call last):
File "<ipython-input-62-500dc46d81ee>", line 1, in <module>
np.r_[0:5:10j]
File "c:\...\appdata\local\programs\python\python36\lib\site-packages\numpy-1.16.0.dev0+872372b-py3.6-win-amd64.egg\numpy\lib\index_tricks.py", line 349, in __getitem__
newobj = function_base.linspace(start, stop, num=size)
AttributeError: module 'numpy.lib.function_base' has no attribute 'linspace'
Numpy/Python version information:
1.16.0.dev0+872372b 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]