From 269800bb4c7d579afea935ae030bffaa0d3471c4 Mon Sep 17 00:00:00 2001 From: bcarreres Date: Thu, 29 Feb 2024 08:55:55 -0500 Subject: [PATCH] symplify formula for M0 scaling --- snsim/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snsim/utils.py b/snsim/utils.py index 8303431..1b25469 100644 --- a/snsim/utils.py +++ b/snsim/utils.py @@ -187,9 +187,7 @@ def scale_M0_cosmology(h, M0_art, h_art): Scaled SN Absolute Magnitude. """ - - dh = (h_art - h) / h - return M0_art - 5 * np.log10(1 + dh) + return M0_art + 5 * np.log10(h / h_art) def init_astropy_time(date):