Skip to content

Commit

Permalink
Fix docstrings on linearizers.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Oct 22, 2020
1 parent 5b13108 commit 943c655
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions python/lsst/ip/isr/linearize.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,10 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
Raises
------
Expand Down Expand Up @@ -625,8 +627,10 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
"""
if not np.any(np.isfinite(kwargs['coeffs'])):
return False, 0
Expand Down Expand Up @@ -667,8 +671,10 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
"""

sqCoeff = kwargs['coeffs'][0]
Expand Down Expand Up @@ -711,8 +717,10 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
"""
splineCoeff = kwargs['coeffs']
centers, values = np.split(splineCoeff, 2)
Expand Down Expand Up @@ -747,8 +755,10 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
"""
return True, 0

Expand All @@ -774,7 +784,9 @@ def __call__(self, image, **kwargs):
Returns
-------
output : `bool`
If true, a correction was applied successfully.
output : `tuple` [`bool`, `int`]
If true, a correction was applied successfully. The
integer indicates the number of pixels that were
uncorrectable by being out of range.
"""
return True, 0

0 comments on commit 943c655

Please sign in to comment.