[ESSSPECTROSCOPY] Rewrite the BIFROST Bragg peak monitor guide on a run file with a real monitor

Đang mở
#910 0 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
35/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
jupyter-notebook, python
Lĩnh vực
documentation

Hướng nghiên cứu

Read docs/user-guide/bifrost/bifrost-bragg-peak-monitor.ipynb with BifrostBraggPeakMonitorWorkflow and the simulation workflow it currently uses. Run ess.bifrost.data.coda_test_run_2026_11() through BifrostBraggPeakMonitorWorkflow and the #909 tests, checking that make_q_map yields a readable IntensityQparQperp map. Done: the guide uses the real elastic_monitor and depends_on chain, the stand-in, DetectorLtotal override and simulation workflow are removed, and the guide is deleted if the map is unreadable.

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

Mô tả

documentation essspectroscopy

The BIFROST Bragg peak monitor user guide (docs/user-guide/bifrost/bifrost-bragg-peak-monitor.ipynb) runs BifrostSimulationBraggPeakMonitorWorkflow on the McStas file simulated_elastic_incoherent_with_phonon, which has no Bragg peak monitor. It fakes one: assemble_detector_data_flatten merges the 300 pixels of detector bank channel_9_5_triplet into one pixel and places it at half the bank's mean position, with y set to 0. So the flight path, Q and the map do not correspond to any real instrument, and, as the guide says, no Bragg peaks are visible.

This has costs beyond the guide:

  • It documents the simulation variant, not BifrostBraggPeakMonitorWorkflow, which is what users run on run files.
  • It is the only user of BifrostSimulationBraggPeakMonitorWorkflow and of single_crystal.detector.simulation_providers.
  • The stand-in position exists only after assembly, not in EmptyDetector. #909 (computing DetectorLtotal from geometry for #908) therefore needs a temporary local DetectorLtotal override in the guide, computed from the assembled data.
Proposal

Rewrite the guide on ess.bifrost.data.coda_test_run_2026_11() with BifrostBraggPeakMonitorWorkflow. That file has a real elastic_monitor with events and its real depends_on chain on the detector tank, so nothing needs faking. The tests added in #909 reduce its 945,966 monitor events to an IntensityQparQperp map. The events are synthetic, so the guide still shows no physics, and it should say so, but it documents exactly what users run, together with make_q_map.

Then:

  • Remove the stand-in, the DetectorLtotal override from #909 and the load_sample_angle insert from the guide.
  • Remove BifrostSimulationBraggPeakMonitorWorkflow and the simulation providers it alone uses.

If the CODA events do not give a readable map, delete the guide instead, together with the simulation workflow.

🤖 Generated with Claude Code

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.