Commit 17c27fe4 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cxxbase -> ducc

parent 6d179b23
import cxxbase1.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
......
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="")
......
import pyHealpix as ph import ducc_0_1.pyHealpix as ph
import numpy as np import numpy as np
import math import math
......
import cxxbase1.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
......
import numpy as np import numpy as np
import pytest import pytest
from numpy.testing import assert_ from numpy.testing import assert_
import cxxbase1.pyinterpol_ng as pyinterpol_ng import ducc_0_1.pyinterpol_ng as pyinterpol_ng
import cxxbase1.pysharp as pysharp import ducc_0_1.pysharp as pysharp
pmp = pytest.mark.parametrize pmp = pytest.mark.parametrize
......
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
......
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):
......
import cxxbase1.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
......
import cxxbase1.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
......
from setuptools import setup, Extension from setuptools import setup, Extension
import sys import sys
pkgname = 'cxxbase1' 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=['cxxbase.cc'], sources=['module.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.15.0', 'pybind11>=2.2.4'], setup_requires=['numpy>=1.17.0', 'pybind11>=2.5.0'],
ext_modules=get_extension_modules(), ext_modules=get_extension_modules(),
install_requires=['numpy>=1.15.0', 'pybind11>=2.2.4'] install_requires=['numpy>=1.17.0', 'pybind11>=2.5.0']
) )
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