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-pipeline
csst_common
Commits
c4c1e88f
Commit
c4c1e88f
authored
Dec 21, 2023
by
BO ZHANG
🏀
Browse files
add convert_slsconf
parent
11db1822
Pipeline
#2627
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/ccds/slsconf.py
View file @
c4c1e88f
...
@@ -354,6 +354,11 @@ def get_slsconf(dir_save=".", **kwargs):
...
@@ -354,6 +354,11 @@ def get_slsconf(dir_save=".", **kwargs):
fsave_conf
(
dir_save
,
GL
,
"GRATINGL"
,
i
)
fsave_conf
(
dir_save
,
GL
,
"GRATINGL"
,
i
)
fsave_conf
(
dir_save
,
GR
,
"GRATINGR"
,
i
)
fsave_conf
(
dir_save
,
GR
,
"GRATINGR"
,
i
)
# TODO: assert all files are saved correctly, then return
# TODO: return a dict containing filepath mapping
# TODO
def
convert_slsconf
(
extract1d_json_path
:
str
=
"/ccds_root/references/msc/csst_msc_ms_extract1d_01_000040.json"
,
config_left
:
str
=
"./csst_msc_ms_extract1d_01_000040_left.conf"
,
config_right
:
str
=
"./csst_msc_ms_extract1d_01_000040_right.conf"
,
):
pass
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