Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
255d9883
Commit
255d9883
authored
3 years ago
by
Fang Yuedong
Browse files
Options
Download
Email Patches
Plain Diff
fix the crash when the path to psf/fd data is not given
parent
0ca58f1d
release_v2.0
11-csst
29-darktime-exptime-shtopen-shtstat-t
C6_codes
current_stable_for_tests
develop
fitsStamp
liudezi-develop-patch-58263
master
new_sim
new_sim_sls
release_v1.0
sim_scheduler
sls_rot_wcs
staylight_header
wcs_test
wcs_test_gridGalaxy
v2.1.0
v2.0.0
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
internal_test_20240425
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/Config/Config.py
+4
-2
ObservationSim/Config/Config.py
with
4 additions
and
2 deletions
+4
-2
ObservationSim/Config/Config.py
+
4
-
2
View file @
255d9883
...
@@ -21,7 +21,9 @@ def config_dir(config, work_dir=None, data_dir=None):
...
@@ -21,7 +21,9 @@ def config_dir(config, work_dir=None, data_dir=None):
# Object catalog direcotry
# Object catalog direcotry
path_dict
[
"cat_dir"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"input_path"
][
"cat_dir"
])
path_dict
[
"cat_dir"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"input_path"
][
"cat_dir"
])
# PSF data directory
# PSF data directory
if
config
[
"psf_setting"
][
"psf_model"
]
==
"Interp"
:
path_dict
[
"psf_dir"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"psf_setting"
][
"psf_dir"
])
path_dict
[
"psf_dir"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"psf_setting"
][
"psf_dir"
])
if
config
[
"ins_effects"
][
"field_dist"
]
==
True
:
path_dict
[
"fd_path"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"psf_setting"
][
"fd_path"
])
path_dict
[
"fd_path"
]
=
os
.
path
.
join
(
path_dict
[
"data_dir"
],
config
[
"psf_setting"
][
"fd_path"
])
return
path_dict
return
path_dict
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets