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
Martin Reinecke
ducc
Commits
7aacaebe
Commit
7aacaebe
authored
Jun 10, 2020
by
Martin Reinecke
Browse files
ducc_0_1 -> ducc0
parent
c5b702ab
Pipeline
#76417
passed with stages
in 13 minutes and 13 seconds
Changes
16
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
28 additions
and
28 deletions
+28
-28
README.md
README.md
+6
-6
python/demos/fft_bench.py
python/demos/fft_bench.py
+1
-1
python/demos/fft_stress.py
python/demos/fft_stress.py
+1
-1
python/demos/healpix_perftest.py
python/demos/healpix_perftest.py
+1
-1
python/demos/healpix_test.py
python/demos/healpix_test.py
+1
-1
python/demos/sht_demo.py
python/demos/sht_demo.py
+2
-2
python/demos/sht_upsample_demo.py
python/demos/sht_upsample_demo.py
+2
-2
python/demos/totalconvolve_accuracy.py
python/demos/totalconvolve_accuracy.py
+3
-3
python/demos/totalconvolve_demo.py
python/demos/totalconvolve_demo.py
+1
-1
python/demos/totalconvolve_usage.py
python/demos/totalconvolve_usage.py
+1
-1
python/test/test_fft.py
python/test/test_fft.py
+1
-1
python/test/test_healpix.py
python/test/test_healpix.py
+1
-1
python/test/test_sht.py
python/test/test_sht.py
+1
-1
python/test/test_totalconvolve.py
python/test/test_totalconvolve.py
+3
-3
python/test/test_wgridder.py
python/test/test_wgridder.py
+1
-1
setup.py
setup.py
+2
-2
No files found.
README.md
View file @
7aacaebe
...
@@ -50,16 +50,16 @@ an interface changes in a manner that is not backwards compatible, the DUCC
...
@@ -50,16 +50,16 @@ an interface changes in a manner that is not backwards compatible, the DUCC
version number will increase. As a consequence it might happen that one part of
version number will increase. As a consequence it might happen that one part of
a Python code may use an older version of DUCC while at the same time another
a Python code may use an older version of DUCC while at the same time another
part requires a newer version. Since DUCC's version number is included in the
part requires a newer version. Since DUCC's version number is included in the
module name itself (the module is not called "ducc", but rather "ducc
_x_y
"),
module name itself (the module is not called "ducc", but rather "ducc
<X>
"),
this is not a problem, as multiple DUCC versions can be installed
this is not a problem, as multiple DUCC versions can be installed
simultaneously.
simultaneously.
The latest patch levels of a given DUCC version will always be available at the
The latest patch levels of a given DUCC version will always be available at the
HEAD of the git branch with the respective name. In other words, if you need
HEAD of the git branch with the respective name. In other words, if you need
the latest incarnation of DUCC 0.1, this will be on branch "ducc
_0_1
" of the
the latest incarnation of DUCC 0.1, this will be on branch "ducc
0
" of the
git repository, and it will be installed as the package "ducc
_0_1
".
git repository, and it will be installed as the package "ducc
0
".
Later versions
(like ducc_0_2 or ducc_1_0)
will be maintained on new branches
Later versions will be maintained on new branches
and will be installed as
and will be installed as
"ducc
_0_2
" and "ducc
_1_0
", so that there will be no
"ducc
1
" and "ducc
2
", so that there will be no
conflict with potentially
conflict with potentially
installed older versions.
installed older versions.
DUCC components
DUCC components
...
...
python/demos/fft_bench.py
View file @
7aacaebe
import
numpy
as
np
import
numpy
as
np
import
ducc
_0_1
.fft
as
duccfft
import
ducc
0
.fft
as
duccfft
from
time
import
time
from
time
import
time
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
...
python/demos/fft_stress.py
View file @
7aacaebe
import
numpy
as
np
import
numpy
as
np
import
ducc
_0_1
.fft
as
fft
import
ducc
0
.fft
as
fft
rng
=
np
.
random
.
default_rng
(
42
)
rng
=
np
.
random
.
default_rng
(
42
)
...
...
python/demos/healpix_perftest.py
View file @
7aacaebe
import
time
import
time
import
math
import
math
import
numpy
as
np
import
numpy
as
np
import
ducc
_0_1
.healpix
as
ph
import
ducc
0
.healpix
as
ph
rng
=
np
.
random
.
default_rng
(
42
)
rng
=
np
.
random
.
default_rng
(
42
)
...
...
python/demos/healpix_test.py
View file @
7aacaebe
import
ducc
_0_1
.healpix
as
ph
import
ducc
0
.healpix
as
ph
import
numpy
as
np
import
numpy
as
np
import
math
import
math
...
...
python/demos/sht_demo.py
View file @
7aacaebe
# Elementary demo for the ducc
_0_1
.sht interface using a Gauss-Legendre grid
# Elementary demo for the ducc
0
.sht interface using a Gauss-Legendre grid
# I'm not sure I have a perfect equivalent for the DH grid(s) at the moment,
# I'm not sure I have a perfect equivalent for the DH grid(s) at the moment,
# since they apparently do not include the South Pole. The Clenshaw-Curtis
# since they apparently do not include the South Pole. The Clenshaw-Curtis
# and Fejer quadrature rules are very similar (see the documentation in
# and Fejer quadrature rules are very similar (see the documentation in
# sharp_geomhelpers.h). An exact analogon to DH can be added easily, I expect.
# sharp_geomhelpers.h). An exact analogon to DH can be added easily, I expect.
import
ducc
_0_1
.sht
as
sht
import
ducc
0
.sht
as
sht
import
numpy
as
np
import
numpy
as
np
from
time
import
time
from
time
import
time
...
...
python/demos/sht_upsample_demo.py
View file @
7aacaebe
import
ducc
_0_1
.sht
as
sht
import
ducc
0
.sht
as
sht
import
ducc
_0_1
.misc
as
misc
import
ducc
0
.misc
as
misc
import
numpy
as
np
import
numpy
as
np
from
time
import
time
from
time
import
time
...
...
python/demos/totalconvolve_accuracy.py
View file @
7aacaebe
import
ducc
_0_1
.totalconvolve
as
totalconvolve
import
ducc
0
.totalconvolve
as
totalconvolve
import
numpy
as
np
import
numpy
as
np
import
ducc
_0_1
.sht
as
sht
import
ducc
0
.sht
as
sht
import
ducc
_0_1
.misc
as
misc
import
ducc
0
.misc
as
misc
import
time
import
time
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
...
python/demos/totalconvolve_demo.py
View file @
7aacaebe
import
ducc
_0_1
.totalconvolve
as
totalconvolve
import
ducc
0
.totalconvolve
as
totalconvolve
import
numpy
as
np
import
numpy
as
np
import
time
import
time
...
...
python/demos/totalconvolve_usage.py
View file @
7aacaebe
# Short usage demo for the interpol_ng module
# Short usage demo for the interpol_ng module
import
ducc
_0_1
.totalconvolve
as
totalconvolve
import
ducc
0
.totalconvolve
as
totalconvolve
import
numpy
as
np
import
numpy
as
np
...
...
python/test/test_fft.py
View file @
7aacaebe
import
ducc
_0_1
.fft
as
fft
import
ducc
0
.fft
as
fft
# import pyfftw
# import pyfftw
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
...
...
python/test/test_healpix.py
View file @
7aacaebe
import
ducc
_0_1
.healpix
as
ph
import
ducc
0
.healpix
as
ph
import
numpy
as
np
import
numpy
as
np
import
math
import
math
import
pytest
import
pytest
...
...
python/test/test_sht.py
View file @
7aacaebe
import
ducc
_0_1
.sht
as
sht
import
ducc
0
.sht
as
sht
import
numpy
as
np
import
numpy
as
np
import
math
import
math
import
pytest
import
pytest
...
...
python/test/test_totalconvolve.py
View file @
7aacaebe
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
from
numpy.testing
import
assert_
from
numpy.testing
import
assert_
import
ducc
_0_1
.totalconvolve
as
totalconvolve
import
ducc
0
.totalconvolve
as
totalconvolve
import
ducc
_0_1
.sht
as
sht
import
ducc
0
.sht
as
sht
import
ducc
_0_1
.misc
as
misc
import
ducc
0
.misc
as
misc
pmp
=
pytest
.
mark
.
parametrize
pmp
=
pytest
.
mark
.
parametrize
...
...
python/test/test_wgridder.py
View file @
7aacaebe
import
ducc
_0_1
.wgridder
as
ng
import
ducc
0
.wgridder
as
ng
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_array_almost_equal
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_array_almost_equal
...
...
setup.py
View file @
7aacaebe
...
@@ -6,7 +6,7 @@ from glob import iglob
...
@@ -6,7 +6,7 @@ from glob import iglob
from
setuptools
import
setup
,
Extension
from
setuptools
import
setup
,
Extension
import
pybind11
import
pybind11
pkgname
=
'ducc
_0_1
'
pkgname
=
'ducc
0
'
version
=
'0.1.0'
version
=
'0.1.0'
def
_get_files_by_suffix
(
directory
,
suffix
):
def
_get_files_by_suffix
(
directory
,
suffix
):
...
@@ -69,7 +69,7 @@ extensions = [Extension(pkgname,
...
@@ -69,7 +69,7 @@ extensions = [Extension(pkgname,
setup
(
name
=
pkgname
,
setup
(
name
=
pkgname
,
version
=
version
,
version
=
version
,
description
=
'D
efinite
ly useful code collection'
,
description
=
'D
istinct
ly useful code collection'
,
url
=
'https://gitlab.mpcdf.mpg.de/mtr/ducc'
,
url
=
'https://gitlab.mpcdf.mpg.de/mtr/ducc'
,
include_package_data
=
True
,
include_package_data
=
True
,
author
=
'Martin Reinecke'
,
author
=
'Martin Reinecke'
,
...
...
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