Skip to content

Commit 20baae2

Browse files
committed
Align Struct doc strings with developer guide
1 parent 58a77e4 commit 20baae2

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

python/lsst/ap/association/association.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ def run(self,
101101
result : `lsst.pipe.base.Struct`
102102
Results struct with components.
103103
104-
- ``"matchedDiaSources"`` : DiaSources that were matched. Matched
104+
- ``matchedDiaSources`` : DiaSources that were matched. Matched
105105
Sources have their diaObjectId updated and set to the id of the
106106
diaObject they were matched to. (`pandas.DataFrame`)
107-
- ``"unAssocDiaSources"`` : DiaSources that were not matched.
107+
- ``unAssocDiaSources`` : DiaSources that were not matched.
108108
Unassociated sources have their diaObject set to 0 as they
109109
were not associated with any existing DiaObjects.
110110
(`pandas.DataFrame`)
111-
- ``"nUpdatedDiaObjects"`` : Number of DiaObjects that were
111+
- ``nUpdatedDiaObjects`` : Number of DiaObjects that were
112112
matched to new DiaSources. (`int`)
113-
- ``"nUnassociatedDiaObjects"`` : Number of DiaObjects that were
113+
- ``nUnassociatedDiaObjects`` : Number of DiaObjects that were
114114
not matched a new DiaSource. (`int`)
115115
"""
116116
diaSources = self.check_dia_source_radec(diaSources)
@@ -189,11 +189,11 @@ def associate_sources(self, dia_objects, dia_sources):
189189
result : `lsst.pipe.base.Struct`
190190
Results struct with components.
191191
192-
- ``"diaSources"`` : Full set of diaSources both matched and not.
192+
- ``diaSources`` : Full set of diaSources both matched and not.
193193
(`pandas.DataFrame`)
194-
- ``"nUpdatedDiaObjects"`` : Number of DiaObjects that were
194+
- ``nUpdatedDiaObjects`` : Number of DiaObjects that were
195195
associated. (`int`)
196-
- ``"nUnassociatedDiaObjects"`` : Number of DiaObjects that were
196+
- ``nUnassociatedDiaObjects`` : Number of DiaObjects that were
197197
not matched a new DiaSource. (`int`)
198198
"""
199199
scores = self.score(
@@ -228,11 +228,11 @@ def score(self, dia_objects, dia_sources, max_dist):
228228
result : `lsst.pipe.base.Struct`
229229
Results struct with components:
230230
231-
- ``"scores"``: array of floats of match quality updated DIAObjects
231+
- ``scores``: array of floats of match quality updated DIAObjects
232232
(array-like of `float`).
233-
- ``"obj_idxs"``: indexes of the matched DIAObjects in the catalog.
233+
- ``obj_idxs``: indexes of the matched DIAObjects in the catalog.
234234
(array-like of `int`)
235-
- ``"obj_ids"``: array of floats of match quality updated DIAObjects
235+
- ``obj_ids``: array of floats of match quality updated DIAObjects
236236
(array-like of `int`).
237237
238238
Default values for these arrays are

python/lsst/ap/association/metrics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ def makeMeasurement(self, values):
156156
A `dict` representation of the metadata. Each `dict` has the
157157
following keys:
158158
159-
``"updatedObjects"``
159+
``updatedObjects``
160160
The number of DIAObjects updated for this image (`int` or
161161
`None`). May be `None` if the image was not
162162
successfully associated.
163-
``"unassociatedObjects"``
163+
``unassociatedObjects``
164164
The number of DIAObjects not associated with a DiaSource in
165165
this image (`int` or `None`). May be `None` if the image was
166166
not successfully associated.
@@ -216,7 +216,7 @@ def makeMeasurement(self, values):
216216
A `dict` representation of the metadata. Each `dict` has the
217217
following key:
218218
219-
``"numTotalSolarSystemObjects"``
219+
``numTotalSolarSystemObjects``
220220
The number of SolarSystemObjects within the observable detector
221221
area (`int` or `None`). May be `None` if solar system
222222
association was not attempted or the image was not
@@ -264,7 +264,7 @@ def makeMeasurement(self, values):
264264
A `dict` representation of the metadata. Each `dict` has the
265265
following key:
266266
267-
``"numAssociatedSsObjects"``
267+
``numAssociatedSsObjects``
268268
The number of successfully associated SolarSystem Objects
269269
(`int` or `None`). May be `None` if solar system association
270270
was not attempted or the image was not successfully associated.

python/lsst/ap/association/skyBotEphemerisQuery.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -126,43 +126,43 @@ def run(self, visitInfos, visit):
126126
details see
127127
https://ssp.imcce.fr/webservices/skybot/api/conesearch/#output-results
128128
129-
``"Num"``
129+
``Num``
130130
object number (`int`, optional)
131-
``"Name"``
131+
``Name``
132132
object name (`str`)
133-
``"RA(h)"``
133+
``RA(h)``
134134
RA in HMS (`str`)
135-
``"DE(deg)"``
135+
``DE(deg)``
136136
DEC in DMS (`str`)
137-
``"Class"``
137+
``Class``
138138
Minor planet classification (`str`)
139-
``"Mv"``
139+
``Mv``
140140
visual magnitude (`float`)
141-
``"Err(arcsec)"``
141+
``Err(arcsec)``
142142
position error (`float`)
143-
``"d(arcsec)"``
143+
``d(arcsec)``
144144
distance from exposure boresight (`float`)?
145-
``"dRA(arcsec/h)"``
145+
``dRA(arcsec/h)``
146146
proper motion in RA (`float`)
147-
``"dDEC(arcsec/h)"``
147+
``dDEC(arcsec/h)``
148148
proper motion in DEC (`float`)
149-
``"Dg(ua)"``
149+
``Dg(ua)``
150150
geocentric distance (`float`)
151-
``"Dh(ua)"``
151+
``Dh(ua)``
152152
heliocentric distance (`float`)
153-
``"Phase(deg)"``
153+
``Phase(deg)``
154154
phase angle (`float`)
155-
``"SunElong(deg)"``
155+
``SunElong(deg)``
156156
solar elongation (`float`)
157-
``"ra"``
157+
``ra``
158158
RA in decimal degrees (`float`)
159-
``"dec"``
159+
``dec``
160160
DEC in decimal degrees (`float`)
161-
``"ssObjectId"``
161+
``ssObjectId``
162162
unique minor planet ID for internal use (`int`). Shared
163163
across catalogs; the pair ``(ssObjectId, visitId)`` is
164164
globally unique.
165-
``"visitId"``
165+
``visitId``
166166
a copy of ``visit`` (`int`)
167167
"""
168168
# Grab the visitInfo from the raw to get the information needed on the

0 commit comments

Comments
 (0)