8fce518804439c1c01341de85567d50d38e19f31,starry/_core/core.py,OpsYlm,right_project,#OpsYlm#Any#Any#Any#Any#Any#Any#Any#,471

Before Change


                math.to_tensor(1.0),
                obl,
            ),
            math.to_tensor(1.0),
            math.to_tensor(0.0),
            math.to_tensor(0.0),
            -0.5 * np.pi,
        )

        // Rotate to the correct phase
        if theta.ndim > 0:
            M = ifelse(
                tt.eq(alpha, 0.0),
                self.tensordotRz(M, theta),
                self.tensordotDz(M, theta, alpha, tau, delta),
            )
        else:
            M = ifelse(
                tt.eq(alpha, 0.0),
                self.dotR(
                    M,
                    math.to_tensor(0.0),
                    math.to_tensor(0.0),
                    math.to_tensor(1.0),
                    theta,
                ),
                self.tensordotDz(
                    M, tt.reshape(theta, (1,)), alpha, tau, delta
                ),
            )

        // Rotate to the polar frame
        M = self.dotR(
            M,
            math.to_tensor(1.0),
            math.to_tensor(0.0),
            math.to_tensor(0.0),
            0.5 * np.pi,
        )

After Change


                    M,
                    -tt.cos(obl),
                    -tt.sin(obl),
                    math.to_tensor(0.0),
                    -(0.5 * np.pi - inc),
                ),
                math.to_tensor(0.0),
                math.to_tensor(0.0),
                math.to_tensor(1.0),
                obl,
            ),
            math.to_tensor(1.0),
            math.to_tensor(0.0),
            math.to_tensor(0.0),
            -0.5 * np.pi,
        )

        // Rotate to the correct phase
        if theta.ndim > 0:
            M = ifelse(
                tt.eq(alpha, 0.0),
                self.tensordotRz(M, theta),
                self.tensordotDz(M, theta, alpha, tau, delta),
            )
        else:
            M = ifelse(
                tt.eq(alpha, 0.0),
                self.dotR(
                    M,
                    math.to_tensor(0.0),
                    math.to_tensor(0.0),
                    math.to_tensor(1.0),
                    theta,
                ),
                self.tensordotDz(
                    M, tt.reshape(theta, (1,)), alpha, tau, delta
                ),
            )

        // Rotate to the polar frame
        M = self.dotR(
            M,
            math.to_tensor(1.0),
            math.to_tensor(0.0),
            math.to_tensor(0.0),
            0.5 * np.pi,
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: rodluger/starry
Commit Name: 8fce518804439c1c01341de85567d50d38e19f31
Time: 2020-06-11
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsYlm
Method Name: right_project


Project Name: rodluger/starry
Commit Name: 8fce518804439c1c01341de85567d50d38e19f31
Time: 2020-06-11
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsYlm
Method Name: left_project


Project Name: rodluger/starry
Commit Name: 8fce518804439c1c01341de85567d50d38e19f31
Time: 2020-06-11
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsYlm
Method Name: right_project


Project Name: rodluger/starry
Commit Name: 8fce518804439c1c01341de85567d50d38e19f31
Time: 2020-06-11
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsYlm
Method Name: tensordotD