Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
2169e31c
Commit
2169e31c
authored
Jul 23, 2017
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow access to single datetime64 value in structured array
parent
44a1bd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/Wendelin/__init__.py
product/Wendelin/__init__.py
+4
-1
No files found.
product/Wendelin/__init__.py
View file @
2169e31c
...
...
@@ -37,7 +37,7 @@ allow_module('numpy')
for
dtype
in
(
'int8'
,
'int16'
,
'int32'
,
'int64'
,
\
'uint8'
,
'uint16'
,
'uint32'
,
'uint64'
,
\
'float16'
,
'float32'
,
'float64'
,
\
'complex64'
,
'complex128'
,
):
'complex64'
,
'complex128'
):
z
=
np
.
array
([
0
,],
dtype
=
dtype
)
allow_type
(
type
(
z
[
0
]))
allow_type
(
type
(
z
))
...
...
@@ -49,6 +49,9 @@ for dtype in ('int8', 'int16', 'int32', 'int64', \
rz
=
np
.
rec
.
array
(
np
.
array
([(
0
,)],
dtype
=
[(
'f0'
,
dtype
)]))
allow_type
(
type
(
rz
[
0
]))
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
(
'scipy'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment