Commit 4d79505a authored by Zhang Xin's avatar Zhang Xin
Browse files

pep8

parent dc74ba7f
Loading
Loading
Loading
Loading
Loading
+21 −21
Original line number Original line Diff line number Diff line
@@ -495,36 +495,36 @@ class aXeConf:
        return a
        return a


    def evaluate_dp(self, dx, dydx):
    def evaluate_dp(self, dx, dydx):
        """Evalate arc length along the trace given trace polynomial coefficients
        # """Evalate arc length along the trace given trace polynomial coefficients


        Parameters
        # Parameters
        ----------
        # ----------
        dx : array-like
        # dx : array-like
            x pixel to evaluate
        #     x pixel to evaluate


        dydx : array-like
        # dydx : array-like
            Coefficients of the trace polynomial
        #     Coefficients of the trace polynomial


        Returns
        # Returns
        -------
        # -------
        dp : array-like
        # dp : array-like
            Arc length along the trace at position `dx`.
        #     Arc length along the trace at position `dx`.


        For `dydx` polynomial orders 0, 1 or 2, integrate analytically.
        # For `dydx` polynomial orders 0, 1 or 2, integrate analytically.
        Higher orders must be integrated numerically.
        # Higher orders must be integrated numerically.


        **Constant:**
        # **Constant:**
            .. math:: dp = dx
        #     .. math:: dp = dx


        **Linear:**
        # **Linear:**
            .. math:: dp = \sqrt{1+\mathrm{DYDX}[1]}\cdot dx
        #     .. math:: dp = \sqrt{1+\mathrm{DYDX}[1]}\cdot dx


        **Quadratic:**
        # **Quadratic:**
            .. math:: u = \mathrm{DYDX}[1] + 2\ \mathrm{DYDX}[2]\cdot dx
        #     .. math:: u = \mathrm{DYDX}[1] + 2\ \mathrm{DYDX}[2]\cdot dx


            .. math:: dp = (u \sqrt{1+u^2} + \mathrm{arcsinh}\ u) / (4\cdot \mathrm{DYDX}[2])
        #     .. math:: dp = (u \sqrt{1+u^2} + \mathrm{arcsinh}\ u) / (4\cdot \mathrm{DYDX}[2])


        """
        # """
        # dp is the arc length along the trace
        # dp is the arc length along the trace
        # $\lambda = dldp_0 + dldp_1 dp + dldp_2 dp^2$ ...
        # $\lambda = dldp_0 + dldp_1 dp + dldp_2 dp^2$ ...