[ESSSPECTROSCOPY] `save_sqw` writes `u = [1,0,0]`, `v = [0,1,0]` whatever the crystal's orientation

Đang mở
#926 1 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
48/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/bifrost/io/sqw.py, especially _AXIS_U and _AXIS_V and the code that writes the projection and run headers. Trace how the sample orientation and the U and B matrices are represented before deciding how to convert the pixels into crystal coordinates. Done means save_sqw writes sample-derived u and v in rlu so cuts reflect the crystal mounting.

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

Mô tả

essspectroscopy

_AXIS_U and _AXIS_V (ess/bifrost/io/sqw.py:27-28) are written into the projection and into every run header, in 1/Å rather than rlu. The pixels are sample-table momenta (z along the beam, y up), which are Horace's crystal Cartesian frame only for a crystal mounted with a*, b*, c* along x, y, z at a3 = 0. Even then the header is wrong: it says a* is along the beam. Any other mounting gives rotated cuts with no warning.

Suggestion: take u and v from the sample, convert the pixels with the U and B matrices, and write u and v in rlu.

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.