Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe_tasks review for DM-1945: tasks for multi-band coadd processing #10

Merged
merged 29 commits into from Jun 23, 2015

Conversation

TallJimbo
Copy link
Member

No description provided.


@param exposure: Exposure to write out
@param results: Struct returned from runDetection
@param patchRef: data reference for patch
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use """! here if using @param.

laurenam and others added 27 commits June 22, 2015 18:47
Forced photometry, if nothing else, requires the slots.
When these Tasks are run in their own stand-alone scripts, the schema
is loaded through the butler.  However, when they are run as part of a
common operation, the Tasks are instantiated before the schemas are
written out, and so they need to be given the schemas at construction
time.  This change makes both possible: the schema is used if provided,
otherwise loaded from the butler.

Conflicts:
	python/lsst/pipe/tasks/forcedPhotImage.py
	python/lsst/pipe/tasks/references.py
The SourceCatalog needs to be created with an IdFactory in the table
so that sources added as part of the deblending have proper IDs.  We
exclude existing IDs from the IdFactory.

Since the makeIdFactory method is identical, factor it out into a factory
function (a factory factory).
This makes it easier to associate the configuration files in the obs_*
package with the executable.
Matching may legitimately produce no matches (e.g., not large enough a
lit area in the patch to contain any bright reference sources), so we
don't want to raise an exception by writing zero matches.
Conflicts:
	python/lsst/pipe/tasks/multiBand.py
MergeSourcesTask's implementation was getting in the way of its
subclasses a bit, by adding a field to the schema that they would not
ultimately use.  Since we're about to add a real implementation for
MergeMeasurementTask, we can now remove the old default implementation
without breaking the pipeline (at least not for very long).

Fixup for removal for MergeSources default impl
We now use the measurement from the band the peak originated in,
which means we're effectively using MergeDetectionTask's priority.

Conflicts:
	python/lsst/pipe/tasks/multiBand.py
Merged data IDs don't include the filter, so printing them when
writing them was mildly confusing.
As per
https://confluence.lsstcorp.org/display/DM/S15+Multi-Band+Coadd+Processing+Prototype
the DetectCoaddSourcesTask should output a calexp exposure with
updated background and mask plane information.  This was not being written,
so this updates the task to write out the calibrated exposure.  Note also
that the name has been changed to coaddName + "calexp_det" to distinguish
it from the "calexp" images output from processCoadd.py.
While the output from writeMatches is useful for debugging,
it is not required.  The default is being set to zero as, in
its current configuration, it does not work as the astrometry
task would have to be initiated (i.e. run) in order for the
matcher to be instantiated.  Changing the default back to
True awaits a refactoring of the astrometry matching API.
Slots are copied automatically now, so this is no longer necessary.
Conflicts:
	python/lsst/pipe/tasks/multiBand.py
This originally went in MeasureCoaddSources because I thought we might want
to sort peaks different in different bands (because they have different fluxes in
different bands) - but we can't do that because we require the ordering of peaks
to be identical across bands for ID consistency.

Conflicts:
	python/lsst/pipe/tasks/multiBand.py
This class lives in coadd_utils (as opposed to pipe_tasks, where
it currently lives in HSC).
@laurenam laurenam merged commit bfb53fc into master Jun 23, 2015
@timj timj deleted the u/lauren/DM-1945 branch February 18, 2021 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants