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
599b0906
Commit
599b0906
authored
Aug 29, 2023
by
Zhao Bowei
Browse files
Update slsconf.py
parent
ba506593
Pipeline
#1177
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/crds/slsconf.py
View file @
599b0906
...
...
@@ -30,7 +30,6 @@ def readjson(dir_save, fjsoname):
##################################################################################
##################################################################################
ver
=
get_version
()
# keys = ['BEAMA', 'MMAG_EXTRACT_A', 'MMAG_MARK_A', 'DYDX_ORDER_A', 'DYDX_A_0', 'DYDX_A_1', 'XOFF_A', 'YOFF_A', 'DISP_ORDER_A', 'DLDP_A_0', 'DLDP_A_1', 'BEAMB', 'MMAG_EXTRACT_B', 'MMAG_MARK_B', 'DYDX_ORDER_B', 'DYDX_B_0', 'XOFF_B', 'YOFF_B', 'DISP_ORDER_B', 'DLDP_B_0', 'DLDP_B_1', 'BEAMC', 'MMAG_EXTRACT_C', 'MMAG_MARK_C', 'DYDX_ORDER_C', 'DYDX_C_0', 'DYDX_C_1', 'XOFF_C', 'YOFF_C', 'DISP_ORDER_C', 'DLDP_C_0', 'DLDP_C_1', 'BEAMD', 'MMAG_EXTRACT_D', 'MMAG_MARK_D', 'DYDX_ORDER_D', 'DYDX_D_0', 'DYDX_D_1', 'XOFF_D', 'YOFF_D', 'DISP_ORDER_D', 'DLDP_D_0', 'DLDP_D_1', 'BEAME', 'MMAG_EXTRACT_E', 'MMAG_MARK_E', 'DYDX_ORDER_E', 'DYDX_E_0', 'DYDX_E_1', 'XOFF_E', 'YOFF_E', 'DISP_ORDER_E', 'DLDP_E_0', 'DLDP_E_1']
...
...
@@ -58,6 +57,7 @@ def fwriteKEY(fsx, i):
fsx
.
write
(
'#SMFACTOR 1.0'
+
'
\n\n
'
)
def
fwriteBEAM
(
dir_save
,
fsx
,
i
,
GRATINGLR
,
BEAMX
,
MMAG_EXTRACT_X
,
MMAG_MARK_X
,
DYDX_ORDER_X
,
DYDX_X_0
,
DYDX_X_1
,
XOFF_X
,
YOFF_X
,
DISP_ORDER_X
,
DLDP_X_0
,
DLDP_X_1
):
ver
=
get_version
()
[
d01_GI21
,
d02_GV43
,
d03_GU21
,
d04_GU43
,
d05_GV21
,
d10_GI43
,
d21_GI65
,
d26_GV87
,
d27_GU65
,
d28_GU87
,
d29_GV65
,
d30_GI87
]
=
[
readjson
(
dir_save
,
'CSST_MSC_MS_EXTRACT1D_'
+
chipid
+
'_'
+
ver
+
'.json'
)
for
chipid
in
[
'01'
,
'02'
,
'03'
,
'04'
,
'05'
,
'10'
,
'21'
,
'26'
,
'27'
,
'28'
,
'29'
,
'30'
]]
d
=
[
d01_GI21
,
d02_GV43
,
d03_GU21
,
d04_GU43
,
d05_GV21
,
d10_GI43
,
d21_GI65
,
d26_GV87
,
d27_GU65
,
d28_GU87
,
d29_GV65
,
d30_GI87
]
fsx
.
write
(
BEAMX
),
[
fsx
.
write
(
' '
+
str
(
d
[
i
][
GRATINGLR
][
BEAMX
][
j
]))
for
j
in
range
(
len
(
d
[
i
][
GRATINGLR
][
BEAMX
]))],
fsx
.
write
(
'
\n
'
)
...
...
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