Skip to content

Commit

Permalink
post review fix const and log in ConstraindAstro
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Apr 10, 2018
1 parent a5c93ac commit 6a459ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConstrainedAstrometryModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ConstrainedAstrometryModel::ConstrainedAstrometryModel(

auto pixelsToFocal =
im.getDetector()->getTransform(afw::cameraGeom::PIXELS, afw::cameraGeom::FOCAL_PLANE);
const Frame &frame = im.getImageFrame();
Frame const &frame = im.getImageFrame();
// construct the chip gtransfo by approximating the pixel->Focal afw::geom::Transform.
GtransfoPoly pol = GtransfoPoly(pixelsToFocal, frame, chipDegree);
GtransfoLin shiftAndNormalize = normalizeCoordinatesTransfo(frame);
Expand Down Expand Up @@ -96,8 +96,8 @@ ConstrainedAstrometryModel::ConstrainedAstrometryModel(
_mappings[ccdImage->getHashKey()] =
std::make_unique<TwoTransfoMapping>(_chipMap[chip], _visitMap[visit]);
}
LOGLS_INFO(_log, "Constructor got " << _chipMap.size() << " chip mappings and " << _visitMap.size()
<< " visit mappings.");
LOGLS_INFO(_log, "Constrained astrometry model has " << _chipMap.size() << " chip mappings and "
<< _visitMap.size() << " visit mappings.");
}

const AstrometryMapping *ConstrainedAstrometryModel::getMapping(CcdImage const &ccdImage) const {
Expand Down

0 comments on commit 6a459ba

Please sign in to comment.