Skip to content

Commit

Permalink
Merge pull request #127 from lsst/tickets/DM-47952
Browse files Browse the repository at this point in the history
DM-47952: Add Real/Bogus to drp_pipe
  • Loading branch information
ebellm authored Dec 11, 2024
2 parents 206e52a + 82cdc27 commit 51972ed
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ external = env.Command([Dir(os.path.join(REPO_ROOT, "HSC", "masks")),
"--export-file", os.path.join(PKG_ROOT, "resources",
"external_jointcal.yaml")),

getExecutableCmd("daf_butler", "butler", "import", REPO_ROOT,
env.ProductDir("testdata_ci_hsc"),
"--export-file", os.path.join(PKG_ROOT, "resources",
"external_pretrained_models.yaml")),

getExecutableCmd("daf_butler", "butler", "register-dataset-type", REPO_ROOT,
"injection_catalog", "ArrowAstropy", "band", "htm7"),

Expand All @@ -152,6 +157,7 @@ external = env.Command([Dir(os.path.join(REPO_ROOT, "HSC", "masks")),
"pipelines", "inject_coadd.yaml"),
"-f", os.path.join(REPO_ROOT, "DRP-ci_hsc+injection.yaml"),
"--overwrite"),

])
env.Alias("external", external)

Expand Down
26 changes: 26 additions & 0 deletions resources/external_pretrained_models.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: Butler Data Repository Export
version: 1.0.2
universe_version: 7
universe_namespace: daf_butler
data:
- type: collection
collection_type: RUN
name: HSC/external
host: null
timespan_begin: null
timespan_end: null
- type: dataset_type
name: pretrainedModelPackage
dimensions: []
storage_class: NNModelPackagePayload
is_calibration: false
- type: dataset
dataset_type: pretrainedModelPackage
run: HSC/external
records:
- dataset_id:
- !uuid '3c2f1a51-0f8c-424d-bd6f-e0138cedce22'
data_id:
- {}
path: pretrained_models/tac_cnn_dc2_2024-11-14/pretrainedModelPackage/pretrainedModelPackage_pretrained_models_tac_cnn_dc2_2024-11-14.zip
formatter: lsst.meas.transiNet.modelPackages.formatters.NNModelPackageFormatter

0 comments on commit 51972ed

Please sign in to comment.