From 9084e44e048d46e2b25d8e29c2f95622311634b0 Mon Sep 17 00:00:00 2001 From: Andrew Hearin Date: Tue, 26 May 2026 14:55:42 -0500 Subject: [PATCH] Update demo notebook using handy SIMULATION_FIT_PARAMS --- .../demo_diffmahpop_diffstarpop_sfh.ipynb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/source/demo_diffmahpop_diffstarpop_sfh.ipynb b/docs/source/demo_diffmahpop_diffstarpop_sfh.ipynb index 0ec8969..f99594c 100644 --- a/docs/source/demo_diffmahpop_diffstarpop_sfh.ipynb +++ b/docs/source/demo_diffmahpop_diffstarpop_sfh.ipynb @@ -166,19 +166,17 @@ "outputs": [], "source": [ "from diffstar.diffstarpop import DEFAULT_DIFFSTARPOP_PARAMS\n", - "from diffstar.diffstarpop.kernels.params import (\n", - " DiffstarPop_Params_Diffstarpopfits_mgash, \n", - ")\n", - "print(DiffstarPop_Params_Diffstarpopfits_mgash.keys())\n", + "from diffstar.diffstarpop import SIMULATION_FIT_PARAMS\n", + "print(SIMULATION_FIT_PARAMS.keys())\n", "\n", "# These are fit for in-situ only SFHs.\n", - "DIFFSTARPOP_UM = DiffstarPop_Params_Diffstarpopfits_mgash[\"smdpl_dr1_nomerging\"]\n", - "DIFFSTARPOP_TNG = DiffstarPop_Params_Diffstarpopfits_mgash[\"tng\"]\n", - "DIFFSTARPOP_GALCUS = DiffstarPop_Params_Diffstarpopfits_mgash[\"galacticus_in_situ\"]\n", + "DIFFSTARPOP_UM = SIMULATION_FIT_PARAMS[\"smdpl_dr1_nomerging\"]\n", + "DIFFSTARPOP_TNG = SIMULATION_FIT_PARAMS[\"tng\"]\n", + "DIFFSTARPOP_GALCUS = SIMULATION_FIT_PARAMS[\"galacticus_in_situ\"]\n", "\n", "# These are fit for in-plus-ex-situ SFHs.\n", - "DIFFSTARPOP_UM_plus_exsitu = DiffstarPop_Params_Diffstarpopfits_mgash[\"smdpl_dr1\"]\n", - "DIFFSTARPOP_GALCUS_plus_exsitu = DiffstarPop_Params_Diffstarpopfits_mgash[\"galacticus_in_plus_ex_situ\"]\n" + "DIFFSTARPOP_UM_plus_exsitu = SIMULATION_FIT_PARAMS[\"smdpl_dr1\"]\n", + "DIFFSTARPOP_GALCUS_plus_exsitu = SIMULATION_FIT_PARAMS[\"galacticus_in_plus_ex_situ\"]\n" ] }, { @@ -449,7 +447,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.9" + "version": "3.13.11" } }, "nbformat": 4,