Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Apr 23, 2024
1 parent eaba10b commit 7aec47c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions python/lsst/meas/astrom/matcher_probabilistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class CatalogExtras:
A numpy boolean array of the same length as catalog to be used for
target selection.
"""

n: int
indices: np.array
select: np.array
Expand Down Expand Up @@ -109,6 +110,7 @@ class ComparableCatalog:
extras : `CatalogExtras`
Extra cached (meta)data for the `catalog`.
"""

catalog: pd.DataFrame
column_coord1: str
column_coord2: str
Expand All @@ -118,8 +120,8 @@ class ComparableCatalog:


class ConvertCatalogCoordinatesConfig(pexConfig.Config):
"""Configuration for the MatchProbabilistic matcher.
"""
"""Configuration for the MatchProbabilistic matcher."""

column_ref_coord1 = pexConfig.Field(
dtype=str,
default='ra',
Expand Down Expand Up @@ -213,7 +215,6 @@ def format_catalogs(
-------
compcat_ref, compcat_target : `ComparableCatalog`
Comparable catalogs corresponding to the input reference and target.
"""
convert_ref = self.coords_ref_to_convert
if convert_ref and not callable(radec_to_xy_func):
Expand Down Expand Up @@ -262,14 +263,14 @@ def format_catalogs(


class MatchProbabilisticConfig(pexConfig.Config):
"""Configuration for the MatchProbabilistic matcher.
"""
"""Configuration for the MatchProbabilistic matcher."""

column_ref_order = pexConfig.Field(
dtype=str,
default=None,
optional=True,
doc="Name of column in reference catalog specifying order for matching."
" Derived from columns_ref_flux if not set.",
doc='Name of column in reference catalog specifying order for matching'
' Derived from columns_ref_flux if not set.',
)

@property
Expand Down Expand Up @@ -439,6 +440,7 @@ class MatcherProbabilistic:
config: `MatchProbabilisticConfig`
A configuration instance.
"""

config: MatchProbabilisticConfig

def __init__(
Expand Down Expand Up @@ -646,7 +648,7 @@ def match(
ref,
target,
target_row_match,
"reference",
'reference',
),
(
self.config.columns_target_copy,
Expand All @@ -655,7 +657,7 @@ def match(
target,
ref,
ref_row_match,
"target",
'target',
),
):
matched = matches >= 0
Expand Down

0 comments on commit 7aec47c

Please sign in to comment.