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 @@ ...@@ -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 1. sh install.sh
2. cd example, and "python sim_demo1.py" 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 Author: xin zhangxinbjfu@gmail.com
Date: 2022-04-29 16:13:01 Date: 2022-04-29 16:13:01
LastEditors: xin zhangxinbjfu@gmail.com LastEditors: Zhang Xin zhangx@bao.ac.cn
LastEditTime: 2023-02-21 16:31:07 LastEditTime: 2024-09-19 14:34:42
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/setup.py 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 Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
''' """
from setuptools import setup, find_packages from setuptools import setup, find_packages
from setuptools.extension import Extension from setuptools.extension import Extension
...@@ -16,39 +17,46 @@ from Cython.Build import cythonize ...@@ -16,39 +17,46 @@ from Cython.Build import cythonize
import numpy import numpy
extensions = [ extensions = [
Extension("SpecDisperser.disperse_c.interp", ["SpecDisperser/disperse_c/interp.pyx"], Extension(
include_dirs = [numpy.get_include()], "SpecDisperser.disperse_c.interp",
libraries=["m"]), ["SpecDisperser/disperse_c/interp.pyx"],
include_dirs=[numpy.get_include()],
Extension("SpecDisperser.disperse_c.disperse", ["SpecDisperser/disperse_c/disperse.pyx"], libraries=["m"],
include_dirs = [numpy.get_include()], ),
libraries=["m"]), Extension(
"SpecDisperser.disperse_c.disperse",
Extension("SpecGen.SpecGenerator", ["SpecGen/SpecGenerator.py"], ["SpecDisperser/disperse_c/disperse.pyx"],
include_dirs = [numpy.get_include()], include_dirs=[numpy.get_include()],
libraries=["m"]), libraries=["m"],
Extension("SpecGen.Config", ["SpecGen/Config.py"], ),
include_dirs = [numpy.get_include()], Extension(
libraries=["m"]), "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( setup(
name = "SL1DSSIM", name="SL1DSSIM",
version = version, version=version,
description = "Slitless 1d spec generator", description="Slitless 1d spec generator",
license_files="LICENSE",
packages=['SpecDisperser', 'SpecDisperser/disperse_c'], packages=["SpecDisperser", "SpecDisperser/disperse_c"],
install_requires=[ install_requires=[
# 'galsim', # 'galsim',
# 'numpy', # 'numpy',
# 'scipy', # 'scipy',
# 'astropy', # '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