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
Liu Dezi
csst_msc_sim
Commits
cb20ea70
Commit
cb20ea70
authored
May 02, 2024
by
Fang Yuedong
Browse files
add error message output for galaxy
parent
557baafb
Changes
1
Show whitespace changes
Inline
Side-by-side
ObservationSim/sim_steps/add_objects.py
View file @
cb20ea70
...
...
@@ -206,6 +206,12 @@ def add_objects(self, chip, filt, tel, pointing, catalog, obs_param):
except
Exception
as
e
:
traceback
.
print_exc
()
self
.
chip_output
.
Log_error
(
e
)
self
.
chip_output
.
Log_error
(
"pointing: #%d, chipID: %d"
%
(
pointing
.
id
,
chip
.
chipID
))
if
obj
.
type
==
"galaxy"
:
self
.
chip_output
.
Log_error
(
"obj id: %s"
%
(
obj
.
param
[
'id'
]))
self
.
chip_output
.
Log_error
(
" e1: %.5f
\n
e2: %.5f
\n
size: %f
\n
bfrac: %f
\n
detA: %f
\n
g1: %.5f
\n
g2: %.5f
\n
"
%
(
obj
.
param
[
'e1'
],
obj
.
param
[
'e2'
],
obj
.
param
[
'size'
],
obj
.
param
[
'bfrac'
],
obj
.
param
[
'detA'
],
obj
.
param
[
'g1'
],
obj
.
param
[
'g2'
]))
# Unload SED:
obj
.
unload_SED
()
...
...
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