Fixed cospectrum: real part instead of abs
This commit is contained in:
parent
4bdbfbde31
commit
f1e6d01d53
1 changed files with 4 additions and 4 deletions
|
@ -56,8 +56,8 @@ G = H / U
|
||||||
th_eta_u = np.angle(phi_eta_u[1])
|
th_eta_u = np.angle(phi_eta_u[1])
|
||||||
|
|
||||||
R = np.sqrt(
|
R = np.sqrt(
|
||||||
(np.abs(phi_eta[1]) + np.abs(phi_u[1]) - 2 * np.abs(phi_eta_u[1]))
|
(np.abs(phi_eta[1]) + np.abs(phi_u[1]) - 2 * phi_eta_u[1].real)
|
||||||
/ (np.abs(phi_eta[1]) + np.abs(phi_u[1]) + 2 * np.abs(phi_eta_u[1]))
|
/ (np.abs(phi_eta[1]) + np.abs(phi_u[1]) + 2 * phi_eta_u[1].real)
|
||||||
)
|
)
|
||||||
#R = np.sqrt(
|
#R = np.sqrt(
|
||||||
# (1 + G**2 - 2 * G * np.cos(th_eta_u))
|
# (1 + G**2 - 2 * G * np.cos(th_eta_u))
|
||||||
|
@ -89,8 +89,8 @@ if config.has_option("post", "compare"):
|
||||||
th_eta_u_ = np.angle(phi_eta_u_[1])
|
th_eta_u_ = np.angle(phi_eta_u_[1])
|
||||||
|
|
||||||
R_ = np.sqrt(
|
R_ = np.sqrt(
|
||||||
(np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) - 2 * np.abs(phi_eta_u_[1]))
|
(np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) - 2 * phi_eta_u_[1].real)
|
||||||
/ (np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) + 2 * np.abs(phi_eta_u_[1]))
|
/ (np.abs(phi_eta_[1]) + np.abs(phi_u_[1]) + 2 * phi_eta_u_[1].real)
|
||||||
)
|
)
|
||||||
#R_ = np.sqrt(
|
#R_ = np.sqrt(
|
||||||
# (1 + G_**2 - 2 * G_ * np.cos(th_eta_u_))
|
# (1 + G_**2 - 2 * G_ * np.cos(th_eta_u_))
|
||||||
|
|
Loading…
Reference in a new issue