From 2fd052f3f787ecebd1d8c74c4a035fdb3cca1b39 Mon Sep 17 00:00:00 2001 From: Antony Lewis Date: Thu, 4 Jul 2024 17:20:58 +0100 Subject: [PATCH] original format for _flux2cmb --- fgspectra/frequency.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fgspectra/frequency.py b/fgspectra/frequency.py index b65e76c..61ec6d2 100644 --- a/fgspectra/frequency.py +++ b/fgspectra/frequency.py @@ -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