Loading csst_cpic_sim/config.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from datetime import datetime 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') Loading data/refdata_path.yaml→csst_cpic_sim/data/refdata_path.yaml +0 −0 File moved. View file csst_cpic_sim/io.py +2 −2 Original line number Diff line number Diff line Loading @@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'): header['exptime'] = obs_info['expt'] header['nframe'] = obs_info['nframe'] header['band'] = obs_info['band'] header['emgain'] = obs_info['emgain'] header['emset'] = obs_info['emset'] header['emgain'] = obs_info.get('emgain', 'UNSET') header['emset'] = obs_info.get('emset', 'UNSET') header['obsid'] = obs_info['obsid'] header['rotation'] = obs_info['rotation'] shift = obs_info['shift'] Loading tests/test_io.py +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ params = { 'nframe': 5, 'band': 'f661', 'emgain': 10, 'emset': 10, 'obsid': '40112345678', 'rotation': 20, 'shift': [0, 1], Loading Loading @@ -96,6 +97,7 @@ band: "f661" shift: [0, 0] rotation: 0 emgain: 100 emset: -1 skybg: 21 expstart: Loading Loading
csst_cpic_sim/config.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ from datetime import datetime 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') Loading
csst_cpic_sim/io.py +2 −2 Original line number Diff line number Diff line Loading @@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'): header['exptime'] = obs_info['expt'] header['nframe'] = obs_info['nframe'] header['band'] = obs_info['band'] header['emgain'] = obs_info['emgain'] header['emset'] = obs_info['emset'] header['emgain'] = obs_info.get('emgain', 'UNSET') header['emset'] = obs_info.get('emset', 'UNSET') header['obsid'] = obs_info['obsid'] header['rotation'] = obs_info['rotation'] shift = obs_info['shift'] Loading
tests/test_io.py +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ params = { 'nframe': 5, 'band': 'f661', 'emgain': 10, 'emset': 10, 'obsid': '40112345678', 'rotation': 20, 'shift': [0, 1], Loading Loading @@ -96,6 +97,7 @@ band: "f661" shift: [0, 0] rotation: 0 emgain: 100 emset: -1 skybg: 21 expstart: Loading