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
3ed4b012
Commit
3ed4b012
authored
Jan 24, 2025
by
Yan Zhaojun
Browse files
update
parent
a046815c
Pipeline
#7886
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
3ed4b012
...
@@ -1822,11 +1822,11 @@ class MCIsimulator():
...
@@ -1822,11 +1822,11 @@ class MCIsimulator():
# ###### use SED_code to generate star SED #######
# ###### use SED_code to generate star SED #######
if
get_file_extension
(
starcat
)
==
'.fits'
:
if
get_file_extension
(
starcat
)
==
'.fits'
:
umag
=
self
.
star
[
'gmag'
][
j
]
;
umag
=
self
.
star
[
'gmag'
][
j
]
gmag
=
self
.
star
[
'gmag'
][
j
]
;
gmag
=
self
.
star
[
'gmag'
][
j
]
rmag
=
self
.
star
[
'rmag'
][
j
]
;
rmag
=
self
.
star
[
'rmag'
][
j
]
imag
=
self
.
star
[
'imag'
][
j
]
;
imag
=
self
.
star
[
'imag'
][
j
]
zmag
=
self
.
star
[
'zmag'
][
j
]
;
zmag
=
self
.
star
[
'zmag'
][
j
]
# SED of j-th star
# SED of j-th star
else
:
else
:
...
@@ -3370,7 +3370,7 @@ class MCIsimulator():
...
@@ -3370,7 +3370,7 @@ class MCIsimulator():
else
:
else
:
if
direction
==
'horizon'
:
if
direction
==
'horizon'
:
self
.
information
[
'bleding_direction'
]
=
'Not_horizon'
self
.
information
[
'bleding_direction'
]
=
'Not_horizon'
# loop over each column, as bleeding is modelled column-wise
# loop over each column, as bleeding is modelled column-wise
# for i, column in enumerate(data): # select one solumnn
# for i, column in enumerate(data): # select one solumnn
# if column.max() <= self.information['fullwellcapacity']:
# if column.max() <= self.information['fullwellcapacity']:
...
...
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