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

オープン
#929 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
3
フォーク
6
平均マージ
2日 13時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scipp/ess のほかの issue

scipp/ess の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。