Skip to content

Commit

Permalink
change lens profile class name to psuedo_double_powerlaw
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gilman committed Feb 26, 2024
1 parent 4a522ad commit 1f02bb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyHalo/Halos/HaloModels/generalized_nfw.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pyHalo.Halos.halo_base import Halo
from lenstronomy.LensModel.Profiles.general_nfw import GNFW
from lenstronomy.LensModel.Profiles.pseudo_double_powerlaw import PseudoDoublePowerlaw
import numpy as np

class GeneralNFWSubhalo(Halo):
Expand All @@ -15,7 +15,7 @@ def __init__(self, mass, x, y, r3d, z,
"""
See documentation in base class (Halos/halo_base.py)
"""
self._prof = GNFW()
self._prof = PseudoDoublePowerlaw()
self._lens_cosmo = lens_cosmo_instance
self._truncation_class = truncation_class
self._concentration_class = concentration_class
Expand Down
4 changes: 2 additions & 2 deletions tests/test_halos/test_general_nfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pyHalo.Halos.HaloModels.generalized_nfw import GeneralNFWFieldHalo, GeneralNFWSubhalo
from pyHalo.Halos.HaloModels.NFW import NFWFieldHalo
from pyHalo.Halos.concentration import ConcentrationDiemerJoyce
from lenstronomy.LensModel.Profiles.general_nfw import GNFW
from lenstronomy.LensModel.Profiles.pseudo_double_powerlaw import PseudoDoublePowerlaw
from lenstronomy.LensModel.Profiles.nfw import NFW
import pytest
from astropy.cosmology import FlatLambdaCDM
Expand All @@ -20,7 +20,7 @@ def setup_method(self):
self.zsource = 2.0
self.lens_cosmo = LensCosmo(self.zhalo, self.zsource, cosmo)
self.nfw_profile_lenstronomy = NFW()
self.gnfw_profile_lenstronomy = GNFW()
self.gnfw_profile_lenstronomy = PseudoDoublePowerlaw()
self.truncation_class = None
self.concentration_class = ConcentrationDiemerJoyce(self.lens_cosmo, scatter=False)

Expand Down

0 comments on commit 1f02bb8

Please sign in to comment.