Skip to content

Commit

Permalink
Cleanup pybind11
Browse files Browse the repository at this point in the history
  • Loading branch information
Pim Schellart authored and Pim Schellart committed Mar 25, 2017
1 parent 895cba8 commit c27a480
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion python/lsst/coadd/chisquared/SConscript
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## -*- python -*-
from lsst.sconsUtils import scripts
scripts.BasicSConscript.pybind11(["addToCoadd"])
scripts.BasicSConscript.pybind11(["addToCoadd"], addUnderscore=False)
4 changes: 2 additions & 2 deletions python/lsst/coadd/chisquared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <https://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import
from .chisquaredLib import *
from __future__ import absolute_import, division, print_function
from .addToCoadd import *
from .coadd import *
from .version import *
15 changes: 8 additions & 7 deletions python/lsst/coadd/chisquared/addToCoadd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
* the GNU General Public License along with this program. If not,
* see <https://www.lsstcorp.org/LegalNotices/>.
*/
#include <cstdint>
#include "pybind11/pybind11.h"

#include <pybind11/pybind11.h>
#include <cstdint>

#include "lsst/coadd/chisquared/addToCoadd.h"

Expand Down Expand Up @@ -49,8 +49,8 @@ void declareAddToCoadd(py::module& mod) {

} // namespace lsst::coadd::chisquared::<anonymous>

PYBIND11_PLUGIN(_addToCoadd) {
py::module mod("_addToCoadd", "Python wrapper for _addToCoadd library");
PYBIND11_PLUGIN(addToCoadd) {
py::module mod("addToCoadd");

declareAddToCoadd<double, double>(mod);
declareAddToCoadd<double, float>(mod);
Expand All @@ -63,6 +63,7 @@ PYBIND11_PLUGIN(_addToCoadd) {

return mod.ptr();
}
}
}
} // namespace lsst::coadd::chisquared

} // chisquared
} // coadd
} // lsst
2 changes: 0 additions & 2 deletions python/lsst/coadd/chisquared/chisquaredLib.py

This file was deleted.

2 changes: 1 addition & 1 deletion python/lsst/coadd/chisquared/coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function

import lsst.coadd.utils as coaddUtils
from . import chisquaredLib
Expand Down

0 comments on commit c27a480

Please sign in to comment.