Commit 2169e31c authored by Klaus Wölfel's avatar Klaus Wölfel

Allow access to single datetime64 value in structured array

parent 44a1bd97
...@@ -37,7 +37,7 @@ allow_module('numpy') ...@@ -37,7 +37,7 @@ allow_module('numpy')
for dtype in ('int8', 'int16', 'int32', 'int64', \ for dtype in ('int8', 'int16', 'int32', 'int64', \
'uint8', 'uint16', 'uint32', 'uint64', \ 'uint8', 'uint16', 'uint32', 'uint64', \
'float16', 'float32', 'float64', \ 'float16', 'float32', 'float64', \
'complex64', 'complex128',): 'complex64', 'complex128'):
z = np.array([0,], dtype = dtype) z = np.array([0,], dtype = dtype)
allow_type(type(z[0])) allow_type(type(z[0]))
allow_type(type(z)) allow_type(type(z))
...@@ -50,6 +50,9 @@ for dtype in ('int8', 'int16', 'int32', 'int64', \ ...@@ -50,6 +50,9 @@ for dtype in ('int8', 'int16', 'int32', 'int64', \
allow_type(type(rz[0])) allow_type(type(rz[0]))
allow_type(type(rz)) allow_type(type(rz))
sz = np.array([('2017-07-12T12:30:20',)], dtype=[('date', 'M8[s]')])
allow_type(type(sz[0]['date']))
allow_module('sklearn') allow_module('sklearn')
allow_module('scipy') allow_module('scipy')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment