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
Wu Jin
CSST simulation
Commits
0c3dd0a2
Commit
0c3dd0a2
authored
Apr 02, 2022
by
Fang Yuedong
Browse files
modify output naming
parent
3a96ec26
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Config/ChipOutput.py
View file @
0c3dd0a2
...
...
@@ -23,12 +23,12 @@ class ChipOutput(object):
# self.cat_name = 'MSC_' + config["obs_setting"]["date_obs"] + config["obs_setting"]["time_obs"] + "_" + str(pointing_ID).rjust(7, '0') + "_" + self.chipLabel.rjust(2,'0') + ".cat"
self
.
cat_name
=
"MSC_%s_chip_%s_filt_%s"
%
(
str
(
pointing_ID
).
rjust
(
7
,
'0'
),
focal_plane
.
getChipLabel
(
chip
.
chipID
),
filt
.
filter_type
)
+
".cat"
self
.
cat_name
=
"MSC_
1
%s_chip_%s_filt_%s"
%
(
str
(
pointing_ID
).
rjust
(
7
,
'0'
),
focal_plane
.
getChipLabel
(
chip
.
chipID
),
filt
.
filter_type
)
+
".cat"
self
.
subdir
=
subdir
# Setup logger for each chip
logger_filename
=
"MSC_%s_chip_%s_filt_%s"
%
(
str
(
pointing_ID
).
rjust
(
7
,
'0'
),
focal_plane
.
getChipLabel
(
chip
.
chipID
),
filt
.
filter_type
)
+
".log"
logger_filename
=
"MSC_
1
%s_chip_%s_filt_%s"
%
(
str
(
pointing_ID
).
rjust
(
7
,
'0'
),
focal_plane
.
getChipLabel
(
chip
.
chipID
),
filt
.
filter_type
)
+
".log"
self
.
logger
=
logging
.
getLogger
()
fh
=
logging
.
FileHandler
(
os
.
path
.
join
(
self
.
subdir
,
logger_filename
),
mode
=
'w+'
,
encoding
=
'utf-8'
)
fh
.
setLevel
(
logging
.
DEBUG
)
...
...
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