Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Perkins
ducc
Commits
474ffe65
Commit
474ffe65
authored
Apr 24, 2020
by
Martin Reinecke
Browse files
Merge branch 'artifacts' into 'master'
Build source release tarballs See merge request mtr/cxxbase!6
parents
401aa3f6
f53dd11d
Changes
4
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
474ffe65
...
...
@@ -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'
pyinterpol_ng/interpol_ng.h
View file @
474ffe65
...
...
@@ -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
;
}
...
...
pyinterpol_ng/pyinterpol_ng.cc
View file @
474ffe65
...
...
@@ -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
);
}
pyinterpol_ng/usage.py
View file @
474ffe65
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment