-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from lsst/tickets/DM-37791
DM-37791: use pybind wrappers, merge into one pybind shared lib
- Loading branch information
Showing
23 changed files
with
355 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# -*- python -*- | ||
from lsst.sconsUtils import scripts | ||
scripts.BasicSConscript.pybind11(["cr", | ||
"coaddBoundedField", | ||
"coaddPsf/coaddPsf", | ||
"coaddTransmissionCurve", | ||
"doubleGaussianPsf", | ||
"imagePsf", | ||
"interp", | ||
"kernelPsf", | ||
"pcaPsf", | ||
"psfCandidate/psfCandidate", | ||
"singleGaussianPsf", | ||
"spatialModelPsf", | ||
"warpedPsf"], addUnderscore=False) | ||
|
||
scripts.BasicSConscript.python(['_algorithmsLib'], [ | ||
'_algorithmsLib.cc', | ||
'cr.cc', | ||
'coaddBoundedField.cc', | ||
'coaddPsf/coaddPsf.cc', | ||
'coaddTransmissionCurve.cc', | ||
'doubleGaussianPsf.cc', | ||
'imagePsf.cc', | ||
'interp.cc', | ||
'kernelPsf.cc', | ||
'pcaPsf.cc', | ||
'psfCandidate/psfCandidate.cc', | ||
'singleGaussianPsf.cc', | ||
'spatialModelPsf.cc', | ||
'warpedPsf.cc']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* This file is part of meas_algorithms. | ||
* | ||
* Developed for the LSST Data Management System. | ||
* This product includes software developed by the LSST Project | ||
* (https://www.lsst.org). | ||
* See the COPYRIGHT file at the top-level directory of this distribution | ||
* for details of code ownership. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "pybind11/pybind11.h" | ||
#include "lsst/cpputils/python.h" | ||
|
||
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
using lsst::cpputils::python::WrapperCollection; | ||
|
||
namespace lsst { | ||
namespace meas { | ||
namespace algorithms { | ||
void wrapCoaddTransmissionCurve(WrapperCollection &wrappers); | ||
void wrapSingleGaussianPsf(WrapperCollection &wrappers); | ||
void wrapKernelPsf(WrapperCollection &wrappers); | ||
void wrapDoubleGaussianPsf(WrapperCollection &wrappers); | ||
void wrapInterp(WrapperCollection &wrappers); | ||
void wrapPcaPsf(WrapperCollection &wrappers); | ||
void wrapWarpedPsf(WrapperCollection &wrappers); | ||
void wapPsfCandidate(WrapperCollection &wrappers); | ||
void wrapImagePsf(WrapperCollection &wrappers); | ||
void wrapSpatialModelPsf(WrapperCollection &wrappers); | ||
void wrapCoaddPsf(WrapperCollection &wrappers); | ||
void wrapCoaddBoundedField(WrapperCollection &wrappers); | ||
void wrapCr(WrapperCollection &wrappers); | ||
|
||
PYBIND11_MODULE(_algorithmsLib, mod) { | ||
WrapperCollection wrappers(mod, "lsst.meas.algorithms"); | ||
wrappers.addInheritanceDependency("lsst.afw.geom"); | ||
wrappers.addInheritanceDependency("lsst.afw.image"); | ||
wrappers.addInheritanceDependency("lsst.afw.table"); | ||
wrappers.addInheritanceDependency("lsst.afw.detection"); | ||
|
||
wrapImagePsf(wrappers); | ||
wrapKernelPsf(wrappers); | ||
wrapCoaddTransmissionCurve(wrappers); | ||
wrapSingleGaussianPsf(wrappers); | ||
wrapDoubleGaussianPsf(wrappers); | ||
wrapInterp(wrappers); | ||
wrapPcaPsf(wrappers); | ||
wrapWarpedPsf(wrappers); | ||
wapPsfCandidate(wrappers); | ||
wrapSpatialModelPsf(wrappers); | ||
wrapCoaddPsf(wrappers); | ||
wrapCoaddBoundedField(wrappers); | ||
wrapCr(wrappers); | ||
wrappers.finish(); | ||
} | ||
|
||
} // algorithms | ||
} // meas | ||
} // lsst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.