Skip to content

Commit

Permalink
Some minor docstring fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Mar 1, 2024
1 parent 975c0e0 commit 06c53e2
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 99 deletions.
4 changes: 2 additions & 2 deletions python/lsst/obs/lsst/_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def convert_day_obs_to_ordinal(day_obs: int) -> int:
Parameters
----------
day_obs : `int`
A YYYYMMDD decimal-digit integer.
A YYYYMMDD decimal-digit integer.
Returns
-------
Expand All @@ -63,7 +63,7 @@ def convert_ordinal_to_day_obs(day_ordinal: int) -> int:
Returns
-------
day_obs : `int`
A YYYYMMDD decimal-digit integer.
A YYYYMMDD decimal-digit integer.
"""
date = datetime.date.fromordinal(day_ordinal)
return (date.year * 100 + date.month) * 100 + date.day
Expand Down
10 changes: 5 additions & 5 deletions python/lsst/obs/lsst/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def attachRawWcsFromBoresight(exposure, dataIdForErrMsg=None):
exposure : `lsst.afw.image.Exposure`
Image object with attached metadata and detector components.
Return
------
Returns
-------
attached : `bool`
If True, a WCS component was successfully created and attached to
``exposure``.
Expand Down Expand Up @@ -93,8 +93,8 @@ def fixAmpGeometry(inAmp, bbox, metadata, logCmd=None):
functions. Warnings about bad EXTNAMES are always sent directly to
the module-level logger.
Return
------
Returns
-------
outAmp : `~lsst.afw.cameraGeom.Amplifier.Builder`
modified : `bool`
`True` if ``amp`` was modified; `False` otherwise.
Expand Down Expand Up @@ -299,7 +299,7 @@ def readRawAmps(fileName, detector):
Returns
-------
ampExps : `list` of `lsst.afw.image.Exposure`
All the individual amps read from the file.
All the individual amps read from the file.
"""
amps = []
for hdu in range(1, len(detector)+1):
Expand Down

0 comments on commit 06c53e2

Please sign in to comment.