Commit 6d179b23 authored by Martin Reinecke's avatar Martin Reinecke

various fixes

parent 025e08dd
......@@ -3,6 +3,7 @@
#include "mr_util/infra/threading.cc"
#include "mr_util/math/pointing.cc"
#include "mr_util/math/geom_utils.cc"
#include "mr_util/math/space_filling.cc"
#include "mr_util/sharp/sharp.cc"
#include "mr_util/sharp/sharp_almhelpers.cc"
#include "mr_util/sharp/sharp_core.cc"
......@@ -20,7 +21,7 @@
using namespace mr;
PYBIND11_MODULE(cxxbase1, m)
PYBIND11_MODULE(PKGNAME, m)
{
add_pypocketfft(m);
add_pysharp(m);
......
......@@ -351,7 +351,7 @@ void add_pyHealpix(py::module &msup)
auto m = msup.def_submodule("pyHealpix");
m.doc() = pyHealpix_DS;
py::class_<Pyhpbase> (m, "Healpix_Base")
py::class_<Pyhpbase> (m, "Healpix_Base", py::module_local())
.def(py::init<int,const string &>(),"nside"_a,"scheme"_a)
.def("order", [](Pyhpbase &self)
{ return self.base.Order(); }, order_DS)
......
......@@ -242,7 +242,7 @@ void add_pyinterpol_ng(py::module &msup)
m.doc() = pyinterpol_ng_DS;
using inter_d = PyInterpolator<double>;
py::class_<inter_d> (m, "PyInterpolator", pyinterpolator_DS)
py::class_<inter_d> (m, "PyInterpolator", py::module_local(), pyinterpolator_DS)
.def(py::init<const py::array &, const py::array &, bool, int64_t, int64_t, double, double, int>(),
initnormal_DS, "sky"_a, "beam"_a, "separate"_a, "lmax"_a, "kmax"_a, "epsilon"_a, "ofactor"_a=1.5,
"nthreads"_a=0)
......@@ -253,7 +253,7 @@ void add_pyinterpol_ng(py::module &msup)
.def ("getSlm", &inter_d::pygetSlm, getSlm_DS, "beam"_a)
.def ("support", &inter_d::support);
using inter_f = PyInterpolator<float>;
py::class_<inter_f> (m, "PyInterpolator_f", pyinterpolator_DS)
py::class_<inter_f> (m, "PyInterpolator_f", py::module_local(), pyinterpolator_DS)
.def(py::init<const py::array &, const py::array &, bool, int64_t, int64_t, float, float, int>(),
initnormal_DS, "sky"_a, "beam"_a, "separate"_a, "lmax"_a, "kmax"_a, "epsilon"_a, "ofactor"_a=1.5f,
"nthreads"_a=0)
......
......@@ -274,7 +274,7 @@ void add_pysharp(py::module &msup)
auto m = msup.def_submodule("pysharp");
m.doc() = pysharp_DS;
py::class_<py_sharpjob<double>> (m, "sharpjob_d")
py::class_<py_sharpjob<double>> (m, "sharpjob_d", py::module_local())
.def(py::init<>())
.def("set_nthreads", &py_sharpjob<double>::set_nthreads, "nthreads"_a)
.def("set_gauss_geometry", &py_sharpjob<double>::set_gauss_geometry,
......
......@@ -17,7 +17,7 @@ include_dirs = ['./src/',
_deferred_pybind11_include()]
extra_compile_args = ['--std=c++17', '-march=native', '-ffast-math', '-O3']
python_module_link_args = []
define_macros = []
define_macros = [("PKGNAME", pkgname)]
if sys.platform == 'darwin':
import distutils.sysconfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment