[ESSSPECTROSCOPY] Whether k_f/k_i is left in depends on the monitor, and nothing records which; `to_nxspe` can't be imported

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Start with ess/spectroscopy/indirect/io.py, especially _to_one_nxspe and the import of .conservation, then trace how NormalizedIncidentEnergyDetector is created and how its monitor is represented. Check the listed dependency versions and reproduce the missing-module error and scaling behavior for ideal and 1/v monitors. Done when monitor efficiency is recorded and the scaling factor and flag are applied only when appropriate.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

essspectroscopy

The rate scattered per incident neutron is (k_f/k_i)·S. Dividing by the monitor distribution leaves (k_f/k_i)·S behind an ideal monitor (every simulated file) and k_f·S behind a 1/v monitor (the real instrument). Nothing on NormalizedIncidentEnergyDetector says which.

ess/spectroscopy/indirect/io.py _to_one_nxspe always multiplies by √(E_i/E_f) (line 83) and writes ki_over_kf_scaling = True (line 156). That is right behind an ideal monitor and over-corrects behind a 1/v one. It also can't run: line 79 imports .conservation, which isn't shipped (ModuleNotFoundError).

Suggestion: record the monitor's efficiency on the container, and apply the factor (and set the flag) only where it is left in.

Checked on scipp 26.11.0, scippneutron 26.10.0, essreduce 26.11.1, essspectroscopy 26.11.3.

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

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

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 scipp/ess

Tất cả issue của scipp/ess

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.