From 4a522ade824a37e0c77d7ec06c3408c8ecca88e8 Mon Sep 17 00:00:00 2001 From: Daniel Gilman Date: Sun, 25 Feb 2024 19:39:32 -0600 Subject: [PATCH] change profile name GNFW -> PSUEDO_DPL to be consistent with lenstronomy main branch --- pyHalo/Halos/HaloModels/generalized_nfw.py | 2 +- tests/test_halos/test_general_nfw.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyHalo/Halos/HaloModels/generalized_nfw.py b/pyHalo/Halos/HaloModels/generalized_nfw.py index 8bbe50d3..0eb3485b 100644 --- a/pyHalo/Halos/HaloModels/generalized_nfw.py +++ b/pyHalo/Halos/HaloModels/generalized_nfw.py @@ -19,7 +19,7 @@ def __init__(self, mass, x, y, r3d, z, self._lens_cosmo = lens_cosmo_instance self._truncation_class = truncation_class self._concentration_class = concentration_class - mdef = 'GNFW' + mdef = 'PSEUDO_DPL' super(GeneralNFWSubhalo, self).__init__(mass, x, y, r3d, mdef, z, sub_flag, lens_cosmo_instance, args, unique_tag) diff --git a/tests/test_halos/test_general_nfw.py b/tests/test_halos/test_general_nfw.py index 122ed7f7..8684ea44 100644 --- a/tests/test_halos/test_general_nfw.py +++ b/tests/test_halos/test_general_nfw.py @@ -49,7 +49,7 @@ def test_lenstronomy_params(self): npt.assert_almost_equal(rs/kwargs_gnfw_profile['Rs'], 1.0, 4) id = gnfw.lenstronomy_ID - npt.assert_string_equal('GNFW', id[0]) + npt.assert_string_equal('PSEUDO_DPL', id[0]) def test_enclosed_mass(self):