Skip to content

Commit

Permalink
Add analysis tasks to the injected RC2 pipelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmccann committed Nov 5, 2024
1 parent 94e550a commit 31edc96
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- python -*-
import os

from lsst.sconsUtils import scripts
from lsst.sconsUtils.state import env
from lsst.sconsUtils.utils import libraryLoaderEnvironment
Expand All @@ -17,6 +18,21 @@ scripts.BasicSConstruct(
"drp_pipe", disableCc=True, noCfgFile=True, defaultTargets=targetList
)
PKG_ROOT = env.ProductDir("drp_pipe")
matching_pipeline = os.path.join(
env.ProductDir("source_injection"),
"pipelines",
"match_injected_tract_catalog.yaml",
)
plotting_pipeline = os.path.join(
env.ProductDir("analysis_tools"),
"pipelines",
"coaddDiffMatchedInjectedCore.yaml",
)
additional_pipelines = f"{matching_pipeline} {plotting_pipeline}"

subset_name = "injected_coadd_analysis"
subset_description = "Analysis tasks for object_table level injected catalogs."


# make deepCoadd injection pipelines for rc2_subset and RC2
rc2_subset_injected_deepCoadd = env.Command(
Expand All @@ -27,7 +43,8 @@ rc2_subset_injected_deepCoadd = env.Command(
action=" ".join(
[
libraryLoaderEnvironment(),
"make_injection_pipeline -t deepCoadd -r $SOURCE -f $TARGET --overwrite",
f"make_injection_pipeline -t deepCoadd -r $SOURCE -f $TARGET -a {additional_pipelines} "
f"-s {subset_name} -d '{subset_description}' --overwrite",
]
),
)
Expand All @@ -39,7 +56,8 @@ RC2_injected_deepCoadd = env.Command(
action=" ".join(
[
libraryLoaderEnvironment(),
"make_injection_pipeline -t deepCoadd -r $SOURCE -f $TARGET --overwrite",
f"make_injection_pipeline -t deepCoadd -r $SOURCE -f $TARGET -a {additional_pipelines} "
f"-s {subset_name} -d '{subset_description}' --overwrite",
]
),
)
Expand Down

0 comments on commit 31edc96

Please sign in to comment.