Commit a1fa4619 authored by Zhang Xin's avatar Zhang Xin
Browse files

add licence

parent fb1989e6
MIT License
Copyright (c) 2022 the scientific data processing software
system of the Chinese Space Station Telescope under the China
Manned Space Project && Xin Zhang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
......@@ -2,7 +2,13 @@
#### 介绍
一维无缝光谱仿真,包含望远镜的特性
1-d csst slitless spectroscopic simulation, include the charactor of optical system, grating, ccd and so on.
1. sh install.sh
2. cd example, and "python sim_demo1.py"
If you use this software, you should include the following acknowledgments:
“This work is based on the scientific data processing software
system of the Chinese Space Station Telescope under the China
Manned Space Project(https://csst-tb.bao.ac.cn/code/zhangxin/sls_1d_spec)”
'''
"""
Author: xin zhangxinbjfu@gmail.com
Date: 2022-04-29 16:13:01
LastEditors: xin zhangxinbjfu@gmail.com
LastEditTime: 2023-02-21 16:31:07
LastEditors: Zhang Xin zhangx@bao.ac.cn
LastEditTime: 2024-09-19 14:34:42
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/setup.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
"""
from setuptools import setup, find_packages
from setuptools.extension import Extension
......@@ -16,39 +17,46 @@ from Cython.Build import cythonize
import numpy
extensions = [
Extension("SpecDisperser.disperse_c.interp", ["SpecDisperser/disperse_c/interp.pyx"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
Extension("SpecDisperser.disperse_c.disperse", ["SpecDisperser/disperse_c/disperse.pyx"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
Extension("SpecGen.SpecGenerator", ["SpecGen/SpecGenerator.py"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
Extension("SpecGen.Config", ["SpecGen/Config.py"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
Extension(
"SpecDisperser.disperse_c.interp",
["SpecDisperser/disperse_c/interp.pyx"],
include_dirs=[numpy.get_include()],
libraries=["m"],
),
Extension(
"SpecDisperser.disperse_c.disperse",
["SpecDisperser/disperse_c/disperse.pyx"],
include_dirs=[numpy.get_include()],
libraries=["m"],
),
Extension(
"SpecGen.SpecGenerator",
["SpecGen/SpecGenerator.py"],
include_dirs=[numpy.get_include()],
libraries=["m"],
),
Extension(
"SpecGen.Config",
["SpecGen/Config.py"],
include_dirs=[numpy.get_include()],
libraries=["m"],
),
]
version='1.00'
version = "1.00"
setup(
name = "SL1DSSIM",
version = version,
description = "Slitless 1d spec generator",
packages=['SpecDisperser', 'SpecDisperser/disperse_c'],
name="SL1DSSIM",
version=version,
description="Slitless 1d spec generator",
license_files="LICENSE",
packages=["SpecDisperser", "SpecDisperser/disperse_c"],
install_requires=[
# 'galsim',
# 'numpy',
# 'scipy',
# 'astropy',
],
ext_modules = cythonize(extensions),
ext_modules=cythonize(extensions),
)
Supports Markdown
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