Skip to content

Commit

Permalink
Make constants const and static
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Oct 27, 2023
1 parent 081fb02 commit b393912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/table/wcsUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ Eigen::Matrix2f calculateCoordCovariance(geom::SkyWcs const &wcs, lsst::geom::Po
// propagate the centroid uncertainty to coordinate uncertainty. Note that
// the calculation is done in arcseconds, then converted to radians in
// order to achieve higher precision.
double scale = 1.0 / 3600.0;
Eigen::Matrix2d cdMatrix{{scale, 0}, {0, scale}};
const static double scale = 1.0 / 3600.0;
const static Eigen::Matrix2d cdMatrix{{scale, 0}, {0, scale}};

lsst::geom::SpherePoint skyCenter = wcs.pixelToSky(center);
auto localGnomonicWcs = geom::makeSkyWcs(center, skyCenter, cdMatrix);
Expand Down

0 comments on commit b393912

Please sign in to comment.