12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- __version__ = '2.0'
- __title__ = 'Calculation of the scattering of EM radiation by a multilayered sphere'
- __mod__ = 'python-scattnlay'
- __author__ = 'Ovidio Peña Rodríguez'
- __email__ = 'ovidio@bytesfall.com'
- __url__ = 'http://scattering.sourceforge.net/'
- from distutils.core import setup
- from distutils.extension import Extension
- from Cython.Build import cythonize
- import numpy as np
- setup(name = __mod__,
- version = __version__,
- description = __title__,
- long_description="""The Python version of scattnlay, a computer implementation of the algorithm for the calculation of electromagnetic \
- radiation scattering by a multilayered sphere developed by Yang. It has been shown that the program is effective, \
- resulting in very accurate values of scattering efficiencies for a wide range of size parameters, which is a \
- considerable improvement over previous implementations of similar algorithms. For details see: \
- O. Pena, U. Pal, Comput. Phys. Commun. 180 (2009) 2348-2354.""",
- author = __author__,
- author_email = __email__,
- maintainer = __author__,
- maintainer_email = __email__,
- keywords = ['Mie scattering', 'Multilayered sphere', 'Efficiency factors', 'Cross-sections'],
- url = __url__,
- license = 'GPL',
- platforms = 'any',
- ext_modules = cythonize("scattnlay.pyx",
- sources = ["src/nmie.cc", "src/py_nmie.cc", "src/scattnlay.cpp"],
- language = "c++",
- extra_compile_args = ['-std=c++11'],
- include_dirs = [np.get_include()]
- )
- )
|