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
2dd1f007
Commit
2dd1f007
authored
Apr 07, 2024
by
Fang Yuedong
Browse files
deep copy qso param dict to avoid mag_use_normal overwritting
parent
108c26c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Catalog/C6_50sqdeg.py
View file @
2dd1f007
import
os
import
os
import
galsim
import
galsim
import
random
import
random
import
copy
import
numpy
as
np
import
numpy
as
np
import
h5py
as
h5
import
h5py
as
h5
import
healpy
as
hp
import
healpy
as
hp
...
@@ -290,10 +291,11 @@ class Catalog(CatalogBase):
...
@@ -290,10 +291,11 @@ class Catalog(CatalogBase):
param
[
'agnsed_file'
]
=
""
param
[
'agnsed_file'
]
=
""
obj
=
Galaxy
(
param
,
logger
=
self
.
logger
)
obj
=
Galaxy
(
param
,
logger
=
self
.
logger
)
else
:
else
:
param
[
'star'
]
=
2
# Quasar
param_qso
=
copy
.
deepcopy
(
param
)
param
[
'agnsed_file'
]
=
agnsed_file
param_qso
[
'star'
]
=
2
# Quasar
param_qso
[
'agnsed_file'
]
=
agnsed_file
# First add QSO model
# First add QSO model
obj
=
Quasar
(
param
,
logger
=
self
.
logger
)
obj
=
Quasar
(
param
_qso
,
logger
=
self
.
logger
)
# Need to deal with additional output columns
# Need to deal with additional output columns
obj
.
additional_output_str
=
self
.
add_fmt
%
(
"n"
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
obj
.
additional_output_str
=
self
.
add_fmt
%
(
"n"
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0.
,
0
,
0.
)
0
,
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