如何让sphinx不扩展函数参数的默认值

时间:2017-07-03 07:10:11

标签: python python-sphinx

这是我的文档字符串:

    def getHeatMap(self, time=np.linspace(0, 60*24, 100),
               traffic=np.linspace(0, 1000000, 100)):
    """ Caculate a training map (a grid contains score on all its nodes)

    :return: (xx,yy,z) where (xx,yy) are the result of meshgrid and\
    z are the corresponding scores

    you can plot the obtained map this way:

    :Example:

        >>> (xx,yy,z) = ckde.getTraindedMap()
        >>> plt.contourf(xx,yy,z)
        >>> plt.contour(xx,yy,z, levels=[0]) // plot anomaly margine
    """

这是狮身人面像的输出: enter image description here

我希望参数的默认值显示为原始代码。 time=np.linspace(0, 60*24, 100)

0 个答案:

没有答案