From 683f873773bf3a24edc2985a5c0bb8a6d51fe5d4 Mon Sep 17 00:00:00 2001 From: fangyuedong Date: Wed, 10 May 2023 19:11:27 +0800 Subject: [PATCH] add test data path to the README --- ObservationSim/Instrument/Chip/Chip.py | 4 ++-- .../__pycache__/__init__.cpython-39.pyc | Bin 197 -> 196 bytes README.md | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ObservationSim/Instrument/Chip/Chip.py b/ObservationSim/Instrument/Chip/Chip.py index c4cd6e8..32b9557 100755 --- a/ObservationSim/Instrument/Chip/Chip.py +++ b/ObservationSim/Instrument/Chip/Chip.py @@ -57,7 +57,7 @@ class Chip(FocalPlane): for key in chip_dict: setattr(self, key, chip_dict[key]) if self.filter_type == "FGS": - if config["ins_effects"]["field_dist"] == False: + if ("field_dist" in config) and (config["ins_effects"]["field_dist"]) == False: self.fdModel = None else: fgs_name = self.chip_name[0:4] @@ -71,7 +71,7 @@ class Chip(FocalPlane): self.fdModel = pickle.load(f) else: # Get the corresponding field distortion model - if config["ins_effects"]["field_dist"] == False: + if ("field_dist" in config) and (config["ins_effects"]["field_dist"] == False): self.fdModel = None else: try: diff --git a/ObservationSim/Instrument/data/field_distortion/__pycache__/__init__.cpython-39.pyc b/ObservationSim/Instrument/data/field_distortion/__pycache__/__init__.cpython-39.pyc index e0e22c6b1c4586f2510a022f62fb4b0af6b21e9d..347511c2b740a42e0dff664b5c77a40f93200323 100644 GIT binary patch delta 53 zcmX@gc!ZHVk(ZZ?0SJ=V11ECZ$YtuMB$g!VXXNLm>Zc{lbI{#+MmQ HOp6Bqd{Gc_ delta 54 zcmX@Yc$ASlk(ZZ?0SMv?btiJ$$Y<%NB$g!VXXNLm>Zc{!+m`#}{Yj IPE3sl0GO8%O#lD@ diff --git a/README.md b/README.md index 0e62c48..ccfa3ca 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,11 @@ ## 相关数据 -* PSF采样数据下载:[百度云盘](https://pan.baidu.com/s/1_2gbO6-d7x001_FMqZ1tfw),密码:2awt +* PSF采样数据下载:[百度云盘](https://pan.baidu.com/s/1_2gbO6-d7x001_FMqZ1tfw),提取码:2awt -* 滤光片及无缝光谱相关数据:[百度云盘](https://pan.baidu.com/s/1JROggg8IKf27i1DnwTaPAw),密码:07v5 +* 测试用数据,C6星系SED PCA主成分,及恒星SED模板库下载:[百度云盘](https://pan.baidu.com/s/15B5H-r39vbIBIXdpin63Wg),提取码:nxsy + +* 滤光片及无缝光谱相关数据:[百度云盘](https://pan.baidu.com/s/1JROggg8IKf27i1DnwTaPAw),提取码:07v5 ## 相关会议及workshop -- GitLab