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_msc_sim
Commits
6041fe88
Commit
6041fe88
authored
Apr 08, 2024
by
Fang Yuedong
Browse files
bug fix: crash when --catalog not given
parent
4f12b49b
Changes
2
Show whitespace changes
Inline
Side-by-side
run_sim.py
View file @
6041fe88
...
...
@@ -85,9 +85,10 @@ def run_sim():
# Initialize the simulation
if
args
.
catalog
is
not
None
:
catalog_module
=
importlib
.
import_module
(
'Catalog.'
+
args
.
catalog
)
obs
=
Observation
(
config
=
config
,
Catalog
=
catalog_module
.
Catalog
,
work_dir
=
config
[
'work_dir'
],
data_dir
=
config
[
'data_dir'
])
else
:
catalog_module
=
None
obs
=
Observation
(
config
=
config
,
Catalog
=
catalog_module
.
Catalog
,
work_dir
=
config
[
'work_dir'
],
data_dir
=
config
[
'data_dir'
])
obs
=
Observation
(
config
=
config
,
Catalog
=
None
,
work_dir
=
config
[
'work_dir'
],
data_dir
=
config
[
'data_dir'
])
# Run simulation
obs
.
runExposure_MPI_PointingList
(
...
...
test_C6.sh
View file @
6041fe88
...
...
@@ -4,8 +4,8 @@ date
python3 /public/home/fangyuedong/project/csst-simulation/run_sim.py
\
--config_file
config_overall.yaml
\
-
-catalog
C6_50sqde
g
\
-
c
/public/home/fangyuedong/project/csst-simulation/config
-
c
/public/home/fangyuedong/project/csst-simulation/confi
g
\
-
-catalog
C6_50sqdeg
# python3 /share/home/fangyuedong/20231211/csst-simulation/run_sim.py \
# --config_file config_C6_dev.yaml \
...
...
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