Commit 474ffe65 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'artifacts' into 'master'

Build source release tarballs

See merge request mtr/cxxbase!6
parents 401aa3f6 f53dd11d
......@@ -7,6 +7,7 @@ variables:
stages:
- build_docker
- testing
- build_tarballs
build_docker:
image: docker:stable
......@@ -89,3 +90,25 @@ test_pyinterpol_ng_clang:
- cd ../pyinterpol_ng
- CC="clang -fsized-deallocation" python3 setup.py install --user -f
- pytest-3 -q test
release:
stage: build_tarballs
script:
- cd pypocketfft
- python3 setup.py sdist
- 'mv dist/*.tar.gz ..'
- cd ../pysharp
- python3 setup.py sdist
- 'mv dist/*.tar.gz ..'
- cd ../nifty_gridder
- python3 setup.py sdist
- 'mv dist/*.tar.gz ..'
- cd ../pyHealpix
- python3 setup.py sdist
- 'mv dist/*.tar.gz ..'
- cd ../pyinterpol_ng
- python3 setup.py sdist
- 'mv dist/*.tar.gz ..'
artifacts:
paths:
- '*.tar.gz'
......@@ -535,9 +535,13 @@ template<typename T> class Interpolator
}
};
double epsilon_guess(size_t support, double ofactor)
{ return std::sqrt(12.)*std::exp(-(support*ofactor)); }
}
using detail_interpol_ng::Interpolator;
using detail_interpol_ng::epsilon_guess;
}
......
......@@ -256,4 +256,5 @@ PYBIND11_MODULE(pyinterpol_ng, m)
m.def("rotate_alm", &pyrotate_alm<fptype>, "alm"_a, "lmax"_a, "psi"_a, "theta"_a,
"phi"_a);
#endif
m.def("epsilon_guess", &epsilon_guess, "support"_a, "ofactor"_a);
}
......@@ -57,6 +57,8 @@ print("...done")
# If we had specified `separate=True`, it would be of shape(nptg, 3).
print(res.shape)
# Since the interpolator object holds large data structures, it should be
# deleted once it is no longer needed
del inter_classic
# Now the same thing for an experiment with HWP. In this case we need the
......
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