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

DM-14828: Update pybind11 wrappers for 2.2 #57

Merged
merged 2 commits into from
Jul 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ config.log
*.cfgc
*.pyc
.cache
.pytest_cache
pytest_session.txt
.coverage
doc/html
doc/*.tag
doc/*.inc
Expand Down
6 changes: 1 addition & 5 deletions python/lsst/ip/isr/applyLookupTable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ static void declareApplyLookupTable(py::module& mod) {

} // namespace lsst::ip::isr::<anonymous>

PYBIND11_PLUGIN(applyLookupTable) {
py::module mod("applyLookupTable");

PYBIND11_MODULE(applyLookupTable, mod) {
declareApplyLookupTable<float>(mod);
declareApplyLookupTable<double>(mod);

return mod.ptr();
}

} // isr
Expand Down
6 changes: 1 addition & 5 deletions python/lsst/ip/isr/isr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,9 @@ static void declareAll(py::module& mod, std::string const& suffix) {

} // namespace lsst::ip::isr::<anonymous>

PYBIND11_PLUGIN(isr) {
py::module mod("isr");

PYBIND11_MODULE(isr, mod) {
declareAll<float>(mod, "F");
declareAll<double>(mod, "D");

return mod.ptr();
}

} // isr
Expand Down