Skip to content

Commit

Permalink
Document positionRms behavior for [], single-element arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmwv committed Mar 8, 2017
1 parent 35bf811 commit b88097e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/validate/drp/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def positionRms(ra_avg, dec_avg, ra, dec):
Returns
-------
pos_rms -- RMS of positions in milliarcsecond. Float.
The RMS of a single-element array will be returned as 0.
The RMS of an empty array will be returned as NaN.
"""
separations = sphDist(ra_avg, dec_avg, ra, dec)
# Note we don't want `np.std` of separations, which would give us the
Expand Down

0 comments on commit b88097e

Please sign in to comment.