diff --git a/SConstruct b/SConstruct index 75f8a88..241aa9c 100644 --- a/SConstruct +++ b/SConstruct @@ -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"), @@ -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) diff --git a/resources/external_pretrained_models.yaml b/resources/external_pretrained_models.yaml new file mode 100644 index 0000000..4cedf1e --- /dev/null +++ b/resources/external_pretrained_models.yaml @@ -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