`PupilTransmission.update_transmission()` deletes effect name

未关闭
#752 0 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@oczoske 已经在做这个了。

开始于 2025年8月4日。

评估

这个 Issue 还没有评估数据。

描述

What happened?

Using METIS wcu_lms, the default setup has the effect
METIS cold_stop PupilTransmission True
Changing the transmission with
metis['cold_stop'].update_transmission(0)
removes the name from the effects list so that the effect cannot be queried or modified any more:
METIS <empty> PupilTransmission True
One consequence is that ExtraFitsKeywords cannot access the transmission value:
astar.scopesim.effects.fits_headers - WARNING: #cold_stop.transmission! not found

Code to reproduce

Exception traceback

ScopeSim bug_report()
Python:
3.12.9 (main, Feb  5 2025, 01:31:18) [GCC 14.2.0]

Installed Python packages:
           anisocado: 0.3.0
         astar-utils: 0.3.3
             astropy: 6.1.7
      beautifulsoup4: 4.13.4
            docutils: 0.19
               httpx: 0.28.1
                lxml: 5.4.0
          matplotlib: 3.10.5
      more-itertools: 10.7.0
               numpy: 1.26.4
           packaging: 25.0
               pooch: 1.8.2
              pyyaml: 6.0.2
               scipy: 1.16.1
            scopesim: 0.10.0
       scopesim_data: could not be loaded.
  scopesim_templates: could not be loaded.
         skycalc-ipy: 0.5.3
             synphot: 1.6.0
                tqdm: 4.67.1

Installed IRDB packages:
        ELT: 2025-06-30
  Armazones: 2023-07-11
      METIS: 2025-06-30

Operating System info:
   System: Linux
  Release: 6.12.27-amd64
  Version: #1 SMP PREEMPT_DYNAMIC Debian 6.12.27-1 (2025-05-06)
  Machine: x86_64
IRDB installation

Downloaded via sim.download_packages()

Use case

Pipeline development

主要语言
Python
星标
42
派生
30
平均合并
2 天 22 小时
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AstarVienna/ScopeSim 的其他 Issue

查看 AstarVienna/ScopeSim 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。