Skip to content

Commit 41655dc

Browse files
committed
Updated the member variables of the LensedPS class.
1 parent 8d39736 commit 41655dc

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

coolest/template/classes/profiles/light.py

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,35 @@ class LensedPS(AnalyticalProfile):
135135
"""Surface brightness of a set of point sources after being lensed.
136136
137137
This profile is described by the following parameters:
138-
139-
- 'ra_list': list of coordinates along the x axis
140-
- 'dec_list': list of coordinates along the y axis
141-
- 'amps': list of amplitudes
138+
- 'x_true': the value of the true, unlensed x-axis position of the source
139+
- 'y_true': the value of the true, unlensed y-axis position of the source
140+
- 'm_true': the value of the true, unlensed magnitude of the source
141+
- 'x_lensed': list of coordinates along the x axis of the multiple images
142+
- 'y_lensed': list of coordinates along the y axis of the multiple images
143+
- 'm_lensed': list of magnitudes of the multiple images
144+
- 'flag_contains' ('true','lensed','both'): whether the profile contains only the lensed properties, only the true ones, or both
145+
- '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')
142146
"""
143147

144148
def __init__(self):
145-
documentation = "Set of lensed point sources"
149+
documentation = "Set of point source and lensed multiple images"
146150
parameters = {
147-
'ra_list': NonLinearParameterSet("RA positions of the lensed point sources",
151+
'ra_true': NonLinearParameter("X-axis position of the true, unlensed point source",
152+
DefinitionRange(),
153+
latex_str=r"$ra$"),
154+
'dec_lensed': NonLinearParameter("Y-axis position of the true, unlensed point source",
155+
DefinitionRange(),
156+
latex_str=r"$dec$"),
157+
'mag_lensed': LinearParameter("Magnitude of the true, unlensed point sources",
158+
DefinitionRange(min_value=0.0),
159+
latex_str=r"$A$"),
160+
'ra_lensed': NonLinearParameterSet("X-axis positions of the multiple images",
148161
DefinitionRange(),
149162
latex_str=r"$ra$"),
150-
'dec_list': NonLinearParameterSet("DEC positions of the lensed point sources",
163+
'dec_lensed': NonLinearParameterSet("Y-axis positions of the multiple images",
151164
DefinitionRange(),
152165
latex_str=r"$dec$"),
153-
'amps': LinearParameterSet("Set of amplitude values for the lensed point sources",
166+
'mag_lensed': LinearParameterSet("Set of magnitude values of the multiple images",
154167
DefinitionRange(min_value=0.0),
155168
latex_str=r"$A$"),
156169
}

dum

Whitespace-only changes.

0 commit comments

Comments
 (0)