Commit 5d5ddd71 authored by Zhang Xin's avatar Zhang Xin
Browse files

fix bug: obs config file defined in pointing list, but not read this file,...

fix bug: obs config file defined in pointing list, but not read this file, pointing obs_param is None
parent 5f82c4ab
......@@ -94,6 +94,11 @@ class Pointing(object):
if not self.obs_config_file:
self.obs_config_file = str(columns[20])
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_code = columns[21][0:3]
self.obs_id = columns[21][3:]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment