You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function _gws_harmonics_at_evo_fobs in gravwaves.py, it seems that the output foreground signal doesn't include the term "1/d lnf". (I assume the output strain is characteristic strain since the output background single includes the term of 1/d lnf)
Here is part of the code, the output loud is directly from the variabletemp, which is the GW strain I guess.
# --- Calculate GW Signals
temp = hs2 * gne * (2.0 / harms_1d)**2
both = np.sum(temp[:, np.newaxis] * num_pois / dlnf, axis=0)
# Calculate and return the expectation value hc^2 for each harmonic
# (N, H)
gwb_harms = np.zeros_like(harms_2d, dtype=float)
gwb_harms[valid] = temp * num_binaries / dlnf
# (N, H) ==> (H,)
gwb_harms = np.sum(gwb_harms, axis=0)
if np.any(num_pois > 0):
# Find the L loudest binaries in each realizations
loud = np.sort(temp[:, np.newaxis] * (num_pois > 0), axis=0)[::-1, :]
fore = loud[0, :]
loud = loud[:loudest, :]
else:
fore = np.zeros_like(both)
loud = np.zeros((loudest, nreals))
back = both - fore
return both, fore, back, loud, gwb_harms
The text was updated successfully, but these errors were encountered:
YihaoZhou27
changed the title
missing dlnf for the foreground single when using the cosmological simulation?
missing dlnf for the foreground single?
Apr 16, 2024
YihaoZhou27
changed the title
missing dlnf for the foreground single?
Missing dlnf for the foreground single?
Apr 16, 2024
In the function
_gws_harmonics_at_evo_fobs
ingravwaves.py
, it seems that the output foreground signal doesn't include the term "1/d lnf". (I assume the output strain is characteristic strain since the output background single includes the term of 1/d lnf)Here is part of the code, the output
loud
is directly from the variabletemp
, which is the GW strain I guess.The text was updated successfully, but these errors were encountered: