def _addCustomData(self, value, name, **kwargs):
'''
The custom data will be added as an info line in the form:
Custom data: name : value
'''
if numpy.rank(value) > 0:
v = 'Array(%s)' % str(numpy.shape(value))
else:
v = str(value)
self._stream._output('Custom data: %s : %s' % (name, v))
self._stream._flushOutput()
评论列表
文章目录