new behaviour of c_[] in scipy 0.5.2
Feb. 9, 2007
10:44 p.m.
Hi, In the past: (scipy 0.4.8, numpy 0.9.6)
print scipy.c_[1,2,3] [1,2,3]
but now: (scipy 0.5.2, numpy 1.0.1)
print scipy.c_[1,2,3] [[1,2,3]]
A nested array! This breaks my old code because:
array = scipy.c_[1,2,3] print array[1] IndexError: index is out of bounds
Is the current behaviour expected? Thanks for your help, James ************************** Harvard University Dept. of Astronomy 60 Garden Street MS-10 Cambridge, MA 02138 phone 617.496.0742 lab 617.495.3267 email jbattat@cfa.harvard.edu **************************
7033
Age (days ago)
7033
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Battat