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

tickets/DM-1448: Move code for mock images so it reusable. #81

Merged
merged 2 commits into from Mar 19, 2019

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Mar 6, 2019

The examples in the ip_isr/examples directory have been superseded. The isr.py and runAssembleTask.py scripts produce results that can be obtained from the runIsr.py command line task. Some of the exampleUtils.py code to generate fake image data will be included in the new isrMock.py code.

The added IsrMock code is based on the afw/cameraGeom/testUtils.py and afw/cameraGeom/utils.py code to provide a complete camera geometry/detector/amplifier set, and replaces the example code from ip_isr/examples. The new mocks can be constructed to either represent a "raw" exposure with the inclusion of various instrument signals (bias, dark, flat, etc.), as well as the master calibration frame to allow the removal of those instrument signals. A Gen-2 butler dataRef can also be constructed, to test that IsrTask properly retrieves the appropriate mock data.

python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrMock.py Outdated Show resolved Hide resolved
@czwa czwa force-pushed the tickets/DM-1448 branch 3 times, most recently from 31d8744 to f6111b3 Compare March 8, 2019 19:04
The examples in this directory have been superseded.  The isr.py and
runAssembleTask.py scripts produce results that can be obtained from
the runIsr.py command line task.  Some of the exampleUtils.py code to
generate fake image data will be included in the new isrMock.py code.
The added IsrMock code is based on the afw/cameraGeom/testUtils.py and
afw/cameraGeom/utils.py code to provide a complete camera
geometry/detector/amplifier set, and replaces some example code from
ip_isr/examples.  The new mocks can be constructed to either represent
a "raw" exposure with the inclusion of various instrument signals
(bias, dark, flat, etc.), as well as the master calibration frame to
allow the removal of those instrument signals.  A Gen-2 butler dataRef
can also be constructed, to test that IsrTask properly retrieves the
appropriate mock data.
@czwa czwa merged commit 537d4a3 into master Mar 19, 2019
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

2 participants