Commit c14b3904 authored by GZhao's avatar GZhao
Browse files

1. fix the little bug in utnittest case. 2 change data folder path to fix setup error

parent 506117a2
Pipeline #4819 passed with stage
in 0 seconds
...@@ -4,7 +4,7 @@ from datetime import datetime ...@@ -4,7 +4,7 @@ from datetime import datetime
import numpy as np import numpy as np
config_aim = os.path.dirname(os.path.dirname(__file__)) config_aim = os.path.dirname(__file__)
config_aim = os.path.join(config_aim, 'data/refdata_path.yaml') config_aim = os.path.join(config_aim, 'data/refdata_path.yaml')
......
...@@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'): ...@@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'):
header['exptime'] = obs_info['expt'] header['exptime'] = obs_info['expt']
header['nframe'] = obs_info['nframe'] header['nframe'] = obs_info['nframe']
header['band'] = obs_info['band'] header['band'] = obs_info['band']
header['emgain'] = obs_info['emgain'] header['emgain'] = obs_info.get('emgain', 'UNSET')
header['emset'] = obs_info['emset'] header['emset'] = obs_info.get('emset', 'UNSET')
header['obsid'] = obs_info['obsid'] header['obsid'] = obs_info['obsid']
header['rotation'] = obs_info['rotation'] header['rotation'] = obs_info['rotation']
shift = obs_info['shift'] shift = obs_info['shift']
......
...@@ -27,6 +27,7 @@ params = { ...@@ -27,6 +27,7 @@ params = {
'nframe': 5, 'nframe': 5,
'band': 'f661', 'band': 'f661',
'emgain': 10, 'emgain': 10,
'emset': 10,
'obsid': '40112345678', 'obsid': '40112345678',
'rotation': 20, 'rotation': 20,
'shift': [0, 1], 'shift': [0, 1],
...@@ -96,6 +97,7 @@ band: "f661" ...@@ -96,6 +97,7 @@ band: "f661"
shift: [0, 0] shift: [0, 0]
rotation: 0 rotation: 0
emgain: 100 emgain: 100
emset: -1
skybg: 21 skybg: 21
expstart: expstart:
......
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