Skip to content

Commit

Permalink
Clarify docstrings. Remove redundant config.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Apr 27, 2022
1 parent c3e6497 commit 01ef918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pipelines/measureCrosstalk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ tasks:
config:
connections.inputExp: 'cpCrosstalkProc'
connections.outputRatios: 'cpCrosstalkRatio'
threshold: 30000
ignoreSaturatedPixels: false
crosstalkSolve:
class: lsst.cp.pipe.measureCrosstalk.CrosstalkSolveTask
config:
Expand Down
13 changes: 8 additions & 5 deletions python/lsst/cp/pipe/measureCrosstalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ class CrosstalkSolveConfig(pipeBase.PipelineTaskConfig,
doSignificanceScaling = Field(
dtype=bool,
default=True,
doc="Scale error by 1/sqrt(N) in calculating significant coefficients.",
doc="Scale error by 1/sqrt(N) in calculating significant coefficients?",
)
doFiltering = Field(
dtype=bool,
default=False,
doc="Filter generated crosstalk to remove marginal measurements.",
doc="Filter generated crosstalk to remove marginal measurements?",
)


Expand Down Expand Up @@ -557,10 +557,12 @@ def measureCrosstalkCoefficients(self, ratios, ordering, rejIter, rejSigma):
----------
ratios : `dict` [`dict` [`numpy.ndarray`]]
Catalog of arrays of ratios. The ratio arrays are one-dimensional
ordering : `list` [`str`]
ordering : `list` [`str`] or None
List to use as a mapping between amplifier names (the
elements of the list) and their position in the output
calibration (the matching index of the list).
calibration (the matching index of the list). If no
ordering is supplied, the order of the keys in the ratio
catalog is used.
rejIter : `int`
Number of rejection iterations.
rejSigma : `float`
Expand All @@ -584,7 +586,8 @@ def measureCrosstalkCoefficients(self, ratios, ordering, rejIter, rejSigma):
values = np.array(ratios[ordering[ii]][ordering[jj]])
values = values[np.abs(values) < 1.0] # Discard unreasonable values

# Sigma clip.
# Sigma clip using the inter-quartile distance and a
# normal distribution.
if ii != jj:
for rej in range(rejIter):
if len(values) == 0:
Expand Down

0 comments on commit 01ef918

Please sign in to comment.