Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
klaus_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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eteri
klaus_wendelin
Commits
21364ac1
Commit
21364ac1
authored
Apr 10, 2017
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get numpy array dtype.
parent
4888f507
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
...TemplateItem/portal_components/document.erp5.DataArray.py
+9
-0
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.xml
...emplateItem/portal_components/document.erp5.DataArray.xml
+3
-3
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
View file @
21364ac1
...
@@ -116,6 +116,15 @@ class DataArray(BigFile):
...
@@ -116,6 +116,15 @@ class DataArray(BigFile):
if
zarray
is
not
None
:
if
zarray
is
not
None
:
return
zarray
.
shape
return
zarray
.
shape
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getArrayDtype'
)
def
getArrayDtype
(
self
):
"""
Get numpy array dtype.
"""
zarray
=
self
.
getArray
()
if
zarray
is
not
None
:
return
zarray
.
dtype
security
.
declareProtected
(
Permissions
.
View
,
'index_html'
)
security
.
declareProtected
(
Permissions
.
View
,
'index_html'
)
def
index_html
(
self
,
REQUEST
,
RESPONSE
,
format
=
_MARKER
,
inline
=
_MARKER
,
**
kw
):
def
index_html
(
self
,
REQUEST
,
RESPONSE
,
format
=
_MARKER
,
inline
=
_MARKER
,
**
kw
):
"""
"""
...
...
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.xml
View file @
21364ac1
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
W:12
0
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:12
9
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:1
37
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
46
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
64
, 10: No exception type(s) specified (bare-except)
</string>
<string>
W:1
73
, 10: No exception type(s) specified (bare-except)
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
...
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