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-sims
csst_msc_sim
Commits
5f82c4ab
Commit
5f82c4ab
authored
Apr 14, 2024
by
Fang Yuedong
Browse files
clean up in Pointing.py
parent
aac2f0a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Config/Pointing.py
View file @
5f82c4ab
...
...
@@ -97,13 +97,7 @@ class Pointing(object):
self
.
pointing_type_code
=
columns
[
21
][
0
:
3
]
self
.
obs_id
=
columns
[
21
][
3
:]
# Load the configuration file for this particular pointing
# with open(self.obs_config_file, "r") as stream:
# try:
# self.obs_param = yaml.safe_load(stream)
# except yaml.YAMLError as exc:
# print(exc)
self
.
pointing_type
=
self
.
obs_param
[
"obs_type"
]
else
:
self
.
timestamp
=
t
...
...
@@ -115,7 +109,6 @@ class Pointing(object):
os
.
makedirs
(
run_dir
,
exist_ok
=
True
)
except
OSError
:
pass
# self.prefix = "MSC_" + str(pointing_ID).rjust(8, '0')
self
.
output_prefix
=
get_obs_id
(
img_type
=
self
.
pointing_type
,
project_cycle
=
overall_config
[
"project_cycle"
],
...
...
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