`PupilTransmission.update_transmission()` deletes effect name

Đang mở
#752 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

@oczoske đang làm issue này rồi.

Từ ngày 4/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Python
Star
42
Fork
30
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AstarVienna/ScopeSim

Tất cả issue của AstarVienna/ScopeSim

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.