Skip to content

Commit

Permalink
Updated the member variables of the LensedPS class.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvernard committed Nov 2, 2023
1 parent 8d39736 commit 41655dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions coolest/template/classes/profiles/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,35 @@ class LensedPS(AnalyticalProfile):
"""Surface brightness of a set of point sources after being lensed.
This profile is described by the following parameters:
- 'ra_list': list of coordinates along the x axis
- 'dec_list': list of coordinates along the y axis
- 'amps': list of amplitudes
- 'x_true': the value of the true, unlensed x-axis position of the source
- 'y_true': the value of the true, unlensed y-axis position of the source
- 'm_true': the value of the true, unlensed magnitude of the source
- 'x_lensed': list of coordinates along the x axis of the multiple images
- 'y_lensed': list of coordinates along the y axis of the multiple images
- 'm_lensed': list of magnitudes of the multiple images
- 'flag_contains' ('true','lensed','both'): whether the profile contains only the lensed properties, only the true ones, or both
- 'flag_coupled': a boolean indicating whether the true positions of the source are coupled to the lensed ones ('flag_contains' must be set to 'both')
"""

def __init__(self):
documentation = "Set of lensed point sources"
documentation = "Set of point source and lensed multiple images"
parameters = {
'ra_list': NonLinearParameterSet("RA positions of the lensed point sources",
'ra_true': NonLinearParameter("X-axis position of the true, unlensed point source",
DefinitionRange(),
latex_str=r"$ra$"),
'dec_lensed': NonLinearParameter("Y-axis position of the true, unlensed point source",
DefinitionRange(),
latex_str=r"$dec$"),
'mag_lensed': LinearParameter("Magnitude of the true, unlensed point sources",
DefinitionRange(min_value=0.0),
latex_str=r"$A$"),
'ra_lensed': NonLinearParameterSet("X-axis positions of the multiple images",
DefinitionRange(),
latex_str=r"$ra$"),
'dec_list': NonLinearParameterSet("DEC positions of the lensed point sources",
'dec_lensed': NonLinearParameterSet("Y-axis positions of the multiple images",
DefinitionRange(),
latex_str=r"$dec$"),
'amps': LinearParameterSet("Set of amplitude values for the lensed point sources",
'mag_lensed': LinearParameterSet("Set of magnitude values of the multiple images",
DefinitionRange(min_value=0.0),
latex_str=r"$A$"),
}
Expand Down
Empty file removed dum
Empty file.

0 comments on commit 41655dc

Please sign in to comment.