-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some additional changes Jim requested to hide PsfAttributes for DM-1067
Also removed some changes to throws which are not part of this ticket
- Loading branch information
pgee
committed
Sep 11, 2014
1 parent
87a03e7
commit 03423f7
Showing
7 changed files
with
89 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ namespace lsst { namespace meas { namespace base { | |
namespace { // anonymous | ||
|
||
/************************************************************************************************************/ | ||
|
||
template<typename ImageT> | ||
std::pair<double, double> | ||
getGaussianFlux( | ||
|
@@ -81,16 +81,16 @@ double getPsfFactor(lsst::afw::detection::Psf const & psf, afw::geom::Point2D co | |
typedef lsst::afw::detection::Psf::Image PsfImageT; | ||
PTR(PsfImageT) psfImage; // the image of the PSF | ||
PTR(PsfImageT) psfImageNoPad; // Unpadded image of PSF | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
int const pad = 5; | ||
try { | ||
psfImageNoPad = psf.computeImage(center); | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
psfImage = PTR(PsfImageT)( | ||
new PsfImageT(psfImageNoPad->getDimensions() + lsst::afw::geom::Extent2I(2*pad)) | ||
); | ||
lsst::afw::geom::BoxI middleBBox(lsst::afw::geom::Point2I(pad, pad), psfImageNoPad->getDimensions()); | ||
|
||
PTR(PsfImageT) middle(new PsfImageT(*psfImage, middleBBox, lsst::afw::image::LOCAL)); | ||
*middle <<= *psfImageNoPad; | ||
} catch (lsst::pex::exceptions::Exception & e) { | ||
|
@@ -124,7 +124,7 @@ void GaussianFluxAlgorithm::apply( | |
PTR(afw::detection::Psf const) psf = exposure.getPsf(); | ||
if (!psf) { | ||
throw LSST_EXCEPT( | ||
lsst::meas::base::MeasurementError, | ||
MeasurementError, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
PaulPrice
Contributor
|
||
getFlagDefinitions()[NO_PSF].doc, | ||
NO_PSF | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Whitespace changes.