output.py 文件源码

python
阅读 50 收藏 0 点赞 0 评论 0

项目:sardana 作者: sardana-org 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号