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
b9a7eba5
Commit
b9a7eba5
authored
1 year ago
by
Fang Yuedong
Browse files
Options
Download
Email Patches
Plain Diff
change "SCI" to "SCIE"
parent
12c472cf
sim_scheduler
current_stable_for_tests
develop
liudezi-develop-patch-58263
master
internal_test_20240425
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ObservationSim/Config/_util.py
+2
-2
ObservationSim/Config/_util.py
config/obs_config_SCI_WIDE_phot.yaml
+1
-1
config/obs_config_SCI_WIDE_phot.yaml
with
3 additions
and
3 deletions
+3
-3
ObservationSim/Config/_util.py
+
2
-
2
View file @
b9a7eba5
def
get_obs_id
(
img_type
=
'SCI'
,
project_cycle
=
6
,
run_counter
=
0
,
pointing_num
=
0
):
# obs_type = {'SCI': '01', 'BIAS': '03', 'DARK': '07', 'FLAT': '11', 'CRS': '98', 'CRD': '99'}
obs_type
=
{
'SCI'
:
'01'
,
'BIAS'
:
'03'
,
'DARK'
:
'07'
,
'FLAT'
:
'11'
,
'CRS'
:
'98'
,
'CRD'
:
'99'
,
'CAL'
:
'01'
}
obs_type
=
{
'SCI
E
'
:
'01'
,
'BIAS'
:
'03'
,
'DARK'
:
'07'
,
'FLAT'
:
'11'
,
'CRS'
:
'98'
,
'CRD'
:
'99'
,
'CAL'
:
'01'
}
obs_id
=
'1'
+
obs_type
[
img_type
]
+
str
(
int
(
project_cycle
)).
rjust
(
2
,
'0'
)
+
str
(
int
(
run_counter
))
+
str
(
pointing_num
).
rjust
(
8
,
'0'
)
return
obs_id
def
get_file_type
(
img_type
=
'SCI'
):
file_type
=
{
'SCI'
:
'SCIE'
,
'BIAS'
:
'BIAS'
,
'DARK'
:
'DARK'
,
'FLAT'
:
'FLAT'
,
'CRS'
:
'CRS'
,
'CRD'
:
'CRD'
,
'CALS'
:
'CALS'
,
'CALF'
:
'CALF'
}
file_type
=
{
'SCI
E
'
:
'SCIE'
,
'BIAS'
:
'BIAS'
,
'DARK'
:
'DARK'
,
'FLAT'
:
'FLAT'
,
'CRS'
:
'CRS'
,
'CRD'
:
'CRD'
,
'CALS'
:
'CALS'
,
'CALF'
:
'CALF'
}
return
file_type
[
img_type
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/obs_config_SCI_WIDE_phot.yaml
+
1
-
1
View file @
b9a7eba5
...
...
@@ -9,7 +9,7 @@
###############################################
# Observation type
obs_type
:
"
SCI"
obs_type
:
"
SCI
E
"
# Define list of chips
run_chips
:
[
8
]
...
...
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