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
6fc506ab
Commit
6fc506ab
authored
Jan 24, 2025
by
Yan Zhaojun
Browse files
update
parent
46920c5e
Changes
10
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/__pycache__/csst_mci_sim.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/csst_mci_sim.py
View file @
6fc506ab
...
@@ -964,10 +964,10 @@ class MCIsimulator():
...
@@ -964,10 +964,10 @@ class MCIsimulator():
##################################################################################################
##################################################################################################
# booleans to control the flow # scale thibaut's values
# booleans to control the flow # scale thibaut's values
if
'thibaut'
in
self
.
values
[
'parallelTrapfile'
]:
if
'thibaut'
in
self
.
information
[
'parallelTrapfile'
]:
self
.
nt_p
/=
0.576
# thibaut's values traps / pixel
self
.
nt_p
/=
0.576
# thibaut's values traps / pixel
self
.
sigma_p
*=
1.e4
# thibaut's values in m**2
self
.
sigma_p
*=
1.e4
# thibaut's values in m**2
if
'thibaut'
in
self
.
values
[
'serialTrapfile'
]:
if
'thibaut'
in
self
.
information
[
'serialTrapfile'
]:
self
.
nt_s
*=
0.576
# thibaut's values traps / pixel #should be division?
self
.
nt_s
*=
0.576
# thibaut's values traps / pixel #should be division?
self
.
sigma_s
*=
1.e4
# thibaut's values in m**2
self
.
sigma_s
*=
1.e4
# thibaut's values in m**2
...
...
csst_mci_sim/mci_so/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/MCIinstrumentModel.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/cosmicrays.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/logger.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/sed.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/__pycache__/shao.cpython-311.pyc
0 → 100644
View file @
6fc506ab
File added
csst_mci_sim/support/shao.py
View file @
6fc506ab
...
@@ -29,18 +29,18 @@ def onOrbitObsPosition(path, input_ra_list, input_dec_list, input_pmra_list, inp
...
@@ -29,18 +29,18 @@ def onOrbitObsPosition(path, input_ra_list, input_dec_list, input_pmra_list, inp
checkInputList
(
input_rv_list
,
input_nstars
)
checkInputList
(
input_rv_list
,
input_nstars
)
checkInputList
(
input_parallax_list
,
input_nstars
)
checkInputList
(
input_parallax_list
,
input_nstars
)
if
isinstance
(
type
(
input_x
),
type
(
1.1
)):
# type(input_x) != type(1.1):
#
if isinstance(type(input_x), type(1.1)): # type(input_x) != type(1.1):
raise
TypeError
(
"Parameter 8 is not double!"
,
input_x
)
#
raise TypeError("Parameter 8 is not double!", input_x)
if
isinstance
(
type
(
input_y
),
type
(
1.1
)):
# type(input_y) != type(1.1):
#
if isinstance(type(input_y), type(1.1)): # type(input_y) != type(1.1):
raise
TypeError
(
"Parameter 9 is not double!"
,
input_y
)
#
raise TypeError("Parameter 9 is not double!", input_y)
if
isinstance
(
type
(
input_z
),
type
(
1.1
)):
# type(input_z) != type(1.1):
#
if isinstance(type(input_z), type(1.1)): # type(input_z) != type(1.1):
raise
TypeError
(
"Parameter 10 is not double!"
,
input_z
)
#
raise TypeError("Parameter 10 is not double!", input_z)
if
isinstance
(
type
(
input_vx
),
type
(
1.1
)):
# type(input_vx) != type(1.1):
#
if isinstance(type(input_vx), type(1.1)): # type(input_vx) != type(1.1):
raise
TypeError
(
"Parameter 11 is not double!"
,
input_vx
)
#
raise TypeError("Parameter 11 is not double!", input_vx)
if
isinstance
(
type
(
input_vy
),
type
(
1.1
)):
# type(input_vy) != type(1.1):
#
if isinstance(type(input_vy), type(1.1)): # type(input_vy) != type(1.1):
raise
TypeError
(
"Parameter 12 is not double!"
,
input_vy
)
#
raise TypeError("Parameter 12 is not double!", input_vy)
if
isinstance
(
type
(
input_vz
),
type
(
1.1
)):
# type(input_vz) != type(1.1):
#
if isinstance(type(input_vz), type(1.1)): # type(input_vz) != type(1.1):
raise
TypeError
(
"Parameter 13 is not double!"
,
input_vz
)
#
raise TypeError("Parameter 13 is not double!", input_vz)
# Convert km -> m
# Convert km -> m
input_x
=
input_x
*
1000.0
input_x
=
input_x
*
1000.0
...
...
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