Skip to content

Commit

Permalink
clang-format on pybind11 files
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Nov 4, 2020
1 parent 171f8be commit 8642c55
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
14 changes: 7 additions & 7 deletions python/lsst/meas/extensions/psfex/prefs.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* LSST Data Management System
*
* This product includes software developed by the
Expand Down Expand Up @@ -38,8 +38,8 @@ PYBIND11_MODULE(prefs, mod) {

clsPrefs.attr("ALL_EXTENSIONS") = py::cast(static_cast<int>(Prefs::ALL_EXTENSIONS));

clsPrefs.def(py::init<std::string const&, lsst::daf::base::PropertySet const*>(),
"filename"_a, "values"_a=nullptr);
clsPrefs.def(py::init<std::string const&, lsst::daf::base::PropertySet const*>(), "filename"_a,
"values"_a = nullptr);

clsPrefs.def("use", &Prefs::use);
clsPrefs.def("setCommandLine", &Prefs::setCommandLine);
Expand Down Expand Up @@ -69,7 +69,7 @@ PYBIND11_MODULE(prefs, mod) {
clsPrefs.def("getCatalogs", &Prefs::getCatalogs);
}

} // psfex
} // extensions
} // meas
} // lsst
} // namespace psfex
} // namespace extensions
} // namespace meas
} // namespace lsst
17 changes: 8 additions & 9 deletions python/lsst/meas/extensions/psfex/psfexPsf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "define.h"
#include "vignet.h"
static double PSFEX_SAVE_BIG = BIG; // we'll #undef BIG and define a variable called BIG
static double PSFEX_SAVE_BIG = BIG; // we'll #undef BIG and define a variable called BIG
static double PSFEX_SAVE_INTERPFAC = INTERPFAC;

#undef PI
Expand Down Expand Up @@ -58,19 +58,18 @@ PYBIND11_MODULE(psfexPsf, mod) {
"PsfexPsf");
lsst::afw::table::io::python::addPersistableMethods<PsfexPsf>(clsPsfexPsf);


clsPsfexPsf.def(py::init<lsst::meas::extensions::psfex::Psf const&, lsst::geom::Point2D const &>(),
"psf"_a, "averagePosition"_a=lsst::geom::Point2D());
clsPsfexPsf.def(py::init<lsst::meas::extensions::psfex::Psf const &, lsst::geom::Point2D const &>(),
"psf"_a, "averagePosition"_a = lsst::geom::Point2D());

clsPsfexPsf.def("clone", &PsfexPsf::clone);
clsPsfexPsf.def("getAveragePosition", &PsfexPsf::getAveragePosition);
clsPsfexPsf.def("getKernel", &PsfexPsf::getKernel,
"position"_a=lsst::geom::Point2D(std::numeric_limits<double>::quiet_NaN()));
"position"_a = lsst::geom::Point2D(std::numeric_limits<double>::quiet_NaN()));
clsPsfexPsf.def("isPersistable", &PsfexPsf::isPersistable);
clsPsfexPsf.def("write", &PsfexPsf::write);
}

} // psfex
} // extensions
} // meas
} // lsst
} // namespace psfex
} // namespace extensions
} // namespace meas
} // namespace lsst

0 comments on commit 8642c55

Please sign in to comment.