Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion pipelines/README
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This directory contains pipelines and configs modified to work with our test data.
This directory contains pipelines and configs for Prompt Processing testing and production.
13 changes: 0 additions & 13 deletions pipelines/calibrate.py

This file was deleted.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exclude =
**/*/__init__.py,
**/*/version.py,
tests/.tests,
tests/data/*py,
pipelines/*.py,
pipelines/**/*.py
per-file-ignores =
Expand Down
12 changes: 6 additions & 6 deletions tests/data/ApPipe.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
description: End to end Alert Production pipeline specialized for HiTS-2015
#
# This file was copied from ap_verify_ci_hits2015 branch DM-34237 and modified
# to use use the calibrate.py file that was also copied over.
# This file was copied from ap_verify_ci_hits2015/pipelines/ApPipe.yaml
# with two modifications: (1) doSolarSystemAssociation is disabled, and
# (2) the calibrate.py file from this package is used. The calibrate.py
# file was copied from ap_verify_ci_hits2015 too.
#
# NOTES
# Remember to run make_apdb.py and use the same configs for diaPipe
# READ_UNCOMMITTED is required for sqlite APDBs, i.e.,
# -c diaPipe:apdb.isolation_level: 'READ_UNCOMMITTED'
# A db_url is always required, e.g.,
# -c diaPipe:apdb.db_url: 'sqlite:////project/user/association.db'
# Option to specify connection_timeout for sqlite APDBs encountering lock errors, i.e.,
Expand All @@ -16,7 +16,7 @@ imports:
- location: $AP_PIPE_DIR/pipelines/DarkEnergyCamera/ApPipe.yaml
parameters:
# Use dataset's specific templates
coaddName: deep
coaddName: goodSeeing
tasks:
isr:
class: lsst.ip.isr.IsrTask
Expand All @@ -28,7 +28,7 @@ tasks:
class: lsst.pipe.tasks.calibrate.CalibrateTask
config:
# Use dataset's reference catalogs
file: $PROMPT_PROTOTYPE_DIR/pipelines/calibrate.py
file: $PROMPT_PROTOTYPE_DIR/tests/data/calibrate.py
diaPipe:
class: lsst.ap.association.DiaPipelineTask
config:
Expand Down
16 changes: 16 additions & 0 deletions tests/data/calibrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# TODO DM-40388: Remove this file when ApPipe is migrated to use CalibrateImageTask
# Config override for lsst.pipe.tasks.calibrate.CalibrateTask
# Ensure we're using the refcats that are actually in this dataset, regardless
# of what task defaults are.

# Use gaia for astrometry (phot_g_mean for everything, as that is the broadest
# band with the most depth).

config.connections.astromRefCat = "gaia_dr2_20200414"
config.astromRefObjLoader.anyFilterMapsToThis = "phot_g_mean"

# Use panstarrs for photometry (grizy filters).
config.connections.photoRefCat = "ps1_pv3_3pi_20170110"
config.photoRefObjLoader.filterMap = {
"u": "g",
"VR": "g"}
Binary file modified tests/data/central_repo/gen3.sqlite3
Binary file not shown.
Loading