Skip to content

Commit

Permalink
Explicitly copy extendedness columns for matched tables
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Jun 26, 2024
1 parent c95b6da commit d56d2f2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pipelines/_ingredients/LSSTCam-imSim/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ tasks:
compareObjectToTruth:
class: lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogTask
config:
columns_ref_copy: ["is_pointsource"]
columns_target_coord_err: ["coord_raErr", "coord_decErr"]
coord_format.coords_ref_to_convert: {"ra": "x", "dec": "y"}
# Convert ref ra/dec to x/y but do not measure distances from x/y
Expand All @@ -88,9 +89,12 @@ tasks:
)
fluxes_meas_psf.append(f"{band}_psfFlux")
config.columns_flux = columns_flux
config.columns_target_copy = ["patch"] + fluxes_meas_psf + [
f"{col}Err" for col in fluxes_meas_psf
] + ["x", "y", "xErr", "yErr"]
# Extendedness columns are needed for downstream plots/metrics/etc.
columns_target_copy = ["patch", "refExtendedness", "refSizeExtendedness"]
columns_target_copy.extend(fluxes_meas_psf)
columns_target_copy.extend([f"{col}Err" for col in fluxes_meas_psf])
columns_target_copy.extend(["x", "y", "xErr", "yErr"])
config.columns_target_copy = columns_target_copy
catalogMatchTract:
class: lsst.analysis.tools.tasks.astrometricCatalogMatch.AstrometricCatalogMatchTask
config:
Expand Down

0 comments on commit d56d2f2

Please sign in to comment.