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
csst-sims
csst_mci_sim
Commits
06599961
Commit
06599961
authored
Jul 26, 2024
by
Yan Zhaojun
Browse files
debug
parents
5867477f
d7cf2ff1
Pipeline
#6427
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
06599961
...
@@ -69,12 +69,21 @@ import configparser as ConfigParser
...
@@ -69,12 +69,21 @@ import configparser as ConfigParser
#from matplotlib import pyplot as plt
#from matplotlib import pyplot as plt
from
scipy
import
ndimage
from
scipy
import
ndimage
<<<<<<<
HEAD
from
support
import
logger
as
lg
from
support
import
logger
as
lg
from
support
import
cosmicrays
from
support
import
cosmicrays
from
support
import
shao
from
support
import
shao
from
support
import
sed
from
support
import
sed
from
support
import
MCIinstrumentModel
from
support
import
MCIinstrumentModel
from
mci_so
import
cdm03bidir
from
mci_so
import
cdm03bidir
=======
from
.support
import
logger
as
lg
from
.support
import
cosmicrays
from
.support
import
shao
from
.support
import
sed
from
.support
import
MCIinstrumentModel
from
.mci_so
import
cdm03bidir
>>>>>>>
d7cf2ff1c8720245c57f8bef8a0138aaf8a9475a
from
joblib
import
Parallel
,
delayed
from
joblib
import
Parallel
,
delayed
...
@@ -1589,7 +1598,7 @@ class MCIsimulator():
...
@@ -1589,7 +1598,7 @@ class MCIsimulator():
self
.
log
.
info
(
'begin iteration........'
)
self
.
log
.
info
(
'begin iteration........'
)
#if self.debug:
#if self.debug:
self
.
log
.
info
(
'j = %i'
%
(
j
))
#
self.log.info('j = %i' % (j))
starRa
=
3600.0
*
(
newRa
[
j
]
)
# ra of star, arcsecond
starRa
=
3600.0
*
(
newRa
[
j
]
)
# ra of star, arcsecond
starDec
=
3600.0
*
(
newDec
[
j
]
)
# dec of star, arcsecond
starDec
=
3600.0
*
(
newDec
[
j
]
)
# dec of star, arcsecond
...
@@ -1761,7 +1770,7 @@ class MCIsimulator():
...
@@ -1761,7 +1770,7 @@ class MCIsimulator():
##self.log.info('appfat= %s'%(self.appFatt))
##self.log.info('appfat= %s'%(self.appFatt))
if
self
.
appFatt
:
if
self
.
appFatt
:
self
.
log
.
info
(
'begin appfat ........'
)
###
self.log.info('begin appfat ........')
### apply treering and bright fatter and diffusion;
### apply treering and bright fatter and diffusion;
SimpleTreeRing
=
galsim
.
SiliconSensor
().
simple_treerings
(
amplitude
=
self
.
information
[
'treering'
])
SimpleTreeRing
=
galsim
.
SiliconSensor
().
simple_treerings
(
amplitude
=
self
.
information
[
'treering'
])
...
...
requirements.txt
View file @
06599961
numpy
==1.23.
3
numpy
==1.23.
5
scipy
==1.9.2
scipy
==1.9.2
setuptools
==65.
5.1
setuptools
==65.
6.3
pandas
==1.5.3
pandas
==1.5.3
julian
==0.14
julian
==0.14
astropy
==5.1
astropy
==5.1
tqdm
==4.
59.0
tqdm
==4.
64.1
galsim
==2.4.9
galsim
==2.4.9
matplotlib
==3.3.1
setup.py
View file @
06599961
...
@@ -16,7 +16,7 @@ with open("requirements.txt", "r") as f:
...
@@ -16,7 +16,7 @@ with open("requirements.txt", "r") as f:
setuptools
.
setup
(
setuptools
.
setup
(
name
=
'csst_mci_sim'
,
# 包名
name
=
'csst_mci_sim'
,
# 包名
version
=
"
1.2
.0"
,
# 版本号
version
=
"
3.0
.0"
,
# 版本号
author
=
"Zhaojun Yan"
,
# 作者
author
=
"Zhaojun Yan"
,
# 作者
author_email
=
"zhaojunyan@shao.ac.cn"
,
# 邮箱
author_email
=
"zhaojunyan@shao.ac.cn"
,
# 邮箱
description
=
"The CSST MCI simulation - prototype"
,
# 短描述
description
=
"The CSST MCI simulation - prototype"
,
# 短描述
...
@@ -42,6 +42,6 @@ setuptools.setup(
...
@@ -42,6 +42,6 @@ setuptools.setup(
package_data
=
{
""
:
[
"LICENSE"
,
"README.md"
],
package_data
=
{
""
:
[
"LICENSE"
,
"README.md"
],
"csst_mci_sim"
:
[
"mci_so/*"
,
"mci_data/*"
,
"CTI/*"
,
"support/*"
]},
"csst_mci_sim"
:
[
"mci_so/*"
,
"mci_data/*"
,
"CTI/*"
,
"support/*"
]},
# 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装
# 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装
python_requires
=
">=3.
11
"
,
# Python版本要求
python_requires
=
">=3.
8
"
,
# Python版本要求
install_requires
=
requirements
,
install_requires
=
requirements
,
)
)
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