Commit 320d8128 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

towards 0.11.0

parent f6aad042
Pipeline #102071 passed with stages
in 17 minutes and 58 seconds
0.11.0:
- general:
- beginning of Doxygen documentation for the C++ part
- fixes to the #include statements in header files; now every header can be
included in isolation.
- some CI streamlining
0.10.0:
- general:
- HTML documentation generation using Sphinx
......
......@@ -47,6 +47,28 @@ namespace py = pybind11;
auto None = py::none();
py::array Py_GL_weights(size_t nlat, size_t nlon)
{
auto res = make_Pyarr<double>({nlat});
auto res2 = to_mav<double,1>(res, true);
GL_Integrator integ(nlat);
auto wgt = integ.weights();
for (size_t i=0; i<res2.shape(0); ++i)
res2.v(i) = wgt[i]*twopi/nlon;
return move(res);
}
py::array Py_GL_thetas(size_t nlat)
{
auto res = make_Pyarr<double>({nlat});
auto res2 = to_mav<double,1>(res, true);
GL_Integrator integ(nlat);
auto x = integ.coords();
for (size_t i=0; i<res2.shape(0); ++i)
res2.v(i) = acos(-x[i]);
return move(res);
}
template<typename T> py::array Py2_rotate_alm(const py::array &alm_, int64_t lmax,
double psi, double theta, double phi, size_t nthreads)
{
......@@ -683,6 +705,8 @@ void add_sht(py::module_ &msup)
m2.def("synthesis", &Py_synthesis, py::kw_only(), "alm"_a, "theta"_a, "lmax"_a, "mstart"_a, "nphi"_a, "phi0"_a, "ringstart"_a, "spin"_a=0, "lstride"_a=1, "pixstride"_a=1, "nthreads"_a=1, "map"_a=None);
m2.def("adjoint_synthesis", &Py_adjoint_synthesis, py::kw_only(), "map"_a, "theta"_a, "lmax"_a, "mstart"_a, "nphi"_a, "phi0"_a, "ringstart"_a, "spin"_a=0, "lstride"_a=1, "pixstride"_a=1, "nthreads"_a=1, "alm"_a=None);
m2.def("GL_weights",&Py_GL_weights, "nlat"_a, "nlon"_a);
m2.def("GL_thetas",&Py_GL_thetas, "nlat"_a);
m2.def("get_gridweights", &Py_get_gridweights, "type"_a, "nrings"_a);
m2.def("alm2leg", &Py_alm2leg, alm2leg_DS, py::kw_only(), "alm"_a, "lmax"_a, "theta"_a, "spin"_a=0, "mval"_a=None, "mstart"_a=None, "lstride"_a=1, "nthreads"_a=1, "leg"_a=None);
m2.def("leg2alm", &Py_leg2alm, leg2alm_DS, py::kw_only(), "leg"_a, "lmax"_a, "theta"_a, "spin"_a=0, "mval"_a=None, "mstart"_a=None, "lstride"_a=1, "nthreads"_a=1, "alm"_a=None);
......
......@@ -8,7 +8,7 @@ from setuptools import setup, Extension
import pybind11
pkgname = 'ducc0'
version = '0.10.1'
version = '0.11.0'
user_cflags = os.getenv("DUCC0_CFLAGS", "").split(" ")
user_cflags = [x for x in user_cflags if x != ""]
......
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