Skip to content

Commit

Permalink
original format for _flux2cmb
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jul 4, 2024
1 parent d752c13 commit 2fd052f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fgspectra/frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@
def _flux2cmb(nu):
"""Converts flux to thermodynamics units"""
x = H_OVER_KT_CMB * nu
g2_min1 = (2.0 * constants.k ** 3 * T_CMB ** 2 * x ** 4 * np.exp(x)
/ (constants.h * constants.c * np.expm1(x)) ** 2)
g2_min1 = (
2.0
* constants.k**3
* T_CMB**2
* x**4
* np.exp(x)
/ (constants.h * constants.c * np.expm1(x)) ** 2
)
return 1.0 / g2_min1


Expand Down

0 comments on commit 2fd052f

Please sign in to comment.