[NumPy-Tickets] [NumPy] #2012: Creating an array from a sequence of arrays of datetime64's gives error

NumPy Trac numpy-tickets@scipy....
Thu Jan 5 11:22:43 CST 2012


#2012: Creating an array from a sequence of arrays of datetime64's gives error
------------------------+---------------------------------------------------
 Reporter:  jsalvatier  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.1      
 Keywords:              |  
------------------------+---------------------------------------------------
 This works

 {{{
 In [43]: a = array(1.5, complex64)

 In [44]: array((a,a))
 Out[44]: array([ 1.5+0.j,  1.5+0.j], dtype=complex64)
 }}}

 but this does not

 {{{
 In [46]: b = array(datetime(2009, 1, 1, 0, 0), datetime64)

 In [47]: array((b,b))
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 C:\Users\jsalvatier\workspace\varscale\src\varscale\timevars.py in
 <module>()
 ----> 1
       2
       3
       4
       5

 ValueError: error setting an array element with a sequence
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2012>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list