Skip to content

Commit

Permalink
Add warning about inconsistent source association on skip.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Feb 20, 2019
1 parent b6e733e commit b390974
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/lsst/ap/pipe/ap_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
__all__ = ["ApPipeConfig", "ApPipeTask"]

import os
import warnings

import lsst.dax.ppdb as daxPpdb
import lsst.pex.config as pexConfig
Expand Down Expand Up @@ -200,6 +201,13 @@ def runDataRef(self, rawRef, templateIds=None, reuse=None):
else:
diffImResults = self.runDiffIm(calexpRef, templateIds)

if "associator" in reuse:
warnings.warn(
"Reusing association results for some images while rerunning "
"others may change the associations. If exact reproducibility "
"matters, please clear the association database and run "
"ap_pipe.py with --reuse-output-from=differencer to redo all "
"association results consistently.")
if "associator" in reuse and \
daxPpdb.isVisitProcessed(self.ppdb, calexpRef.get("calexp_visitInfo")):
self.log.info("Association has already been run for {0}, skipping...".format(calexpRef.dataId))
Expand Down

0 comments on commit b390974

Please sign in to comment.