Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Perkins
ducc
Commits
17c27fe4
Commit
17c27fe4
authored
May 29, 2020
by
Martin Reinecke
Browse files
cxxbase -> ducc
parent
6d179b23
Changes
11
Hide whitespace changes
Inline
Side-by-side
cxxbas
e.cc
→
modul
e.cc
View file @
17c27fe4
File moved
nifty_gridder/test/test_gridder.py
View file @
17c27fe4
import
cxxbase
1.nifty_gridder
as
ng
import
ducc_0_
1.nifty_gridder
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
...
...
pyHealpix/pyHealpix_perftest.py
View file @
17c27fe4
from
__future__
import
print_function
import
time
import
time
import
math
import
math
import
numpy
as
np
import
numpy
as
np
import
pyHealpix
as
ph
import
ducc_0_1.
pyHealpix
as
ph
def
report
(
name
,
vlen
,
ntry
,
nside
,
isnest
,
perf
):
def
report
(
name
,
vlen
,
ntry
,
nside
,
isnest
,
perf
):
print
(
name
,
": "
,
perf
*
1e-6
,
"MOps/s"
,
sep
=
""
)
print
(
name
,
": "
,
perf
*
1e-6
,
"MOps/s"
,
sep
=
""
)
...
...
pyHealpix/pyHealpix_test.py
View file @
17c27fe4
import
pyHealpix
as
ph
import
ducc_0_1.
pyHealpix
as
ph
import
numpy
as
np
import
numpy
as
np
import
math
import
math
...
...
pyHealpix/test/test_pyHealpix.py
View file @
17c27fe4
import
cxxbase
1.pyHealpix
as
ph
import
ducc_0_
1.pyHealpix
as
ph
import
numpy
as
np
import
numpy
as
np
import
math
import
math
import
pytest
import
pytest
...
...
pyinterpol_ng/test/test_interpol_ng.py
View file @
17c27fe4
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
from
numpy.testing
import
assert_
from
numpy.testing
import
assert_
import
cxxbase
1.pyinterpol_ng
as
pyinterpol_ng
import
ducc_0_
1.pyinterpol_ng
as
pyinterpol_ng
import
cxxbase
1.pysharp
as
pysharp
import
ducc_0_
1.pysharp
as
pysharp
pmp
=
pytest
.
mark
.
parametrize
pmp
=
pytest
.
mark
.
parametrize
...
...
pypocketfft/demos/bench.py
View file @
17c27fe4
import
numpy
as
np
import
numpy
as
np
import
pypocketfft
import
ducc_0_1.pypocketfft
as
pypocketfft
from
time
import
time
from
time
import
time
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
...
pypocketfft/demos/stress.py
View file @
17c27fe4
import
numpy
as
np
import
numpy
as
np
import
pypocketfft
import
ducc_0_1.pypocketfft
as
pypocketfft
def
_l2error
(
a
,
b
,
axes
):
def
_l2error
(
a
,
b
,
axes
):
...
...
pypocketfft/test/test_pypocketfft.py
View file @
17c27fe4
import
cxxbase
1.pypocketfft
as
pypocketfft
import
ducc_0_
1.pypocketfft
as
pypocketfft
# import pyfftw
# import pyfftw
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
...
...
pysharp/test/test_pysharp.py
View file @
17c27fe4
import
cxxbase
1.pysharp
as
pysharp
import
ducc_0_
1.pysharp
as
pysharp
import
numpy
as
np
import
numpy
as
np
import
math
import
math
import
pytest
import
pytest
...
...
setup.py
View file @
17c27fe4
from
setuptools
import
setup
,
Extension
from
setuptools
import
setup
,
Extension
import
sys
import
sys
pkgname
=
'
cxxbase
1'
pkgname
=
'
ducc_0_
1'
class
_deferred_pybind11_include
(
object
):
class
_deferred_pybind11_include
(
object
):
def
__init__
(
self
,
user
=
False
):
def
__init__
(
self
,
user
=
False
):
...
@@ -36,23 +36,22 @@ else:
...
@@ -36,23 +36,22 @@ else:
def
get_extension_modules
():
def
get_extension_modules
():
return
[
Extension
(
pkgname
,
return
[
Extension
(
pkgname
,
language
=
'c++'
,
language
=
'c++'
,
sources
=
[
'
cxxbas
e.cc'
],
sources
=
[
'
modul
e.cc'
],
depends
=
[],
depends
=
[],
include_dirs
=
include_dirs
,
include_dirs
=
include_dirs
,
define_macros
=
define_macros
,
define_macros
=
define_macros
,
extra_compile_args
=
extra_compile_args
,
extra_compile_args
=
extra_compile_args
,
extra_link_args
=
python_module_link_args
),
extra_link_args
=
python_module_link_args
)]
]
setup
(
name
=
pkgname
,
setup
(
name
=
pkgname
,
version
=
'0.
0.1
'
,
version
=
'0.
1.0
'
,
description
=
'
Various neat modules
'
,
description
=
'
Definitely useful code collection
'
,
include_package_data
=
True
,
include_package_data
=
True
,
author
=
'Martin Reinecke'
,
author
=
'Martin Reinecke'
,
author_email
=
'martin@mpa-garching.mpg.de'
,
author_email
=
'martin@mpa-garching.mpg.de'
,
packages
=
[],
packages
=
[],
setup_requires
=
[
'numpy>=1.1
5
.0'
,
'pybind11>=2.
2.4
'
],
setup_requires
=
[
'numpy>=1.1
7
.0'
,
'pybind11>=2.
5.0
'
],
ext_modules
=
get_extension_modules
(),
ext_modules
=
get_extension_modules
(),
install_requires
=
[
'numpy>=1.1
5
.0'
,
'pybind11>=2.
2.4
'
]
install_requires
=
[
'numpy>=1.1
7
.0'
,
'pybind11>=2.
5.0
'
]
)
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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