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
Zhang Xin
Sls 1d Spec
Commits
a1fa4619
Commit
a1fa4619
authored
Sep 19, 2024
by
Zhang Xin
Browse files
add licence
parent
fb1989e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
LICENSE
0 → 100644
View file @
a1fa4619
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
README.md
View file @
a1fa4619
...
...
@@ -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)”
setup.py
View file @
a1fa4619
'''
"""
Author: xin zhangxinbjfu@gmail.com
Date: 2022-04-29 16:13:01
LastEditors:
x
in zhangx
inbjfu@gmail.com
LastEditTime: 202
3
-0
2-21
1
6
:3
1:07
LastEditors:
Zhang X
in zhangx
@bao.ac.cn
LastEditTime: 202
4
-0
9-19
1
4
:3
4: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
),
)
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