Commit e066dca3 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Levin Zimmermann

wendelin: add setArrayDtypeNames so that names can be changed from sandbox

parent 72b3dc97
...@@ -139,6 +139,13 @@ class DataArray(BigFile): ...@@ -139,6 +139,13 @@ class DataArray(BigFile):
if zarray is not None: if zarray is not None:
return zarray.dtype.names return zarray.dtype.names
security.declareProtected(Permissions.AccessContentsInformation, 'setArrayDtypeNames')
def setArrayDtypeNames(self, names):
"""
Set numpy array dtype names
"""
self.getArray().dtype.names = names
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):
""" """
......
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