Commit 21364ac1 authored by Ivan Tyagov's avatar Ivan Tyagov

Get numpy array dtype.

parent 4888f507
......@@ -116,6 +116,15 @@ class DataArray(BigFile):
if zarray is not None:
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')
def index_html(self, REQUEST, RESPONSE, format=_MARKER, inline=_MARKER, **kw):
"""
......
......@@ -46,9 +46,9 @@
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:120, 42: Redefining built-in \'format\' (redefined-builtin)</string>
<string>W:137, 4: Redefining built-in \'range\' (redefined-builtin)</string>
<string>W:164, 10: No exception type(s) specified (bare-except)</string>
<string>W:129, 42: Redefining built-in \'format\' (redefined-builtin)</string>
<string>W:146, 4: Redefining built-in \'range\' (redefined-builtin)</string>
<string>W:173, 10: No exception type(s) specified (bare-except)</string>
</tuple>
</value>
</item>
......
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