-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring SLSim - Merging DeflectorBase and SourcePopBase into single Population class. #237
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #237 +/- ##
==========================================
- Coverage 97.63% 94.50% -3.13%
==========================================
Files 66 68 +2
Lines 4264 4405 +141
==========================================
Hits 4163 4163
- Misses 101 242 +141
|
for more information, see https://pre-commit.ci
…b-hjortlund/slsim into refactor/merge_deflector_and_source
for more information, see https://pre-commit.ci
…b-hjortlund/slsim into refactor/merge_deflector_and_source
@sibirrer @nkhadka21 is it correctly understood that in the source Galaxies class and Elliptical/AllLensGalaxies class we have ellipticies given by e1/e2 and e1_light / e2_light assuming a single sersic profile, respectively? Just want to make sure such that naming of galaxy properties can be standardised between source and lens galaxies. |
Hi @jacob-hjortlund the eccentricities in mass and light are defined in the same way. They may not necessarily imply Sersic profiles (ellipticity distortions are general as long as its constant as a function of radius). Where you have to pay attention is between eccentricities in light and mass, and these should be held differently (at least for the power-law mass density profile) |
Thanks, makes sense. Tiny follow-up: Assuming we define ellipticity as q^2 = ( 1 - \epsilon ) / ( 1 + \epsilon ), shouldn't eccentricity be given by e = \sqrt( 1 - q^2) = \sqrt( 2 \epsilon / ( 1 + \epsilon ) ) instead of e = ( 1 - \epsilon ) / ( 1 + \epsilon )? Is a different definition of eccentricity being used or am I just bad at arithmetic haha |
Hi @jacob-hjortlund: we are using the definition e = (1-q)/ (1+q). In that definition, the distortions are equivalent with reduced shear components |
@sibirrer @nkhadka21 currently, if velocity dispersions are not provided in the input table for the Is this the intended behaviour? If so, we should simply remove |
Hi @jacob-hjortlund, Thank you for asking about this! We were using the vel_disp_from_m_star function to compute the velocity dispersion of elliptical lens galaxies. However, we later discovered that the resulting lens population had an unusual velocity dispersion distribution. Therefore, we switched to using the SDSS velocity dispersion function for elliptical galaxies as well. If we use vel_disp_from_m_star for galaxies with a stellar mass higher than the range used in the interpolation, there's a chance we might end up with more than 20,000 galaxies with very high velocity dispersion. This could lead to an overprediction of the lens population. |
Draft PR for #225.