[essreduce] `BifrostSimulationWorkflow` fails with its defaults on ESS's own simulated file

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

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

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

評価

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

調査の方向性

Start with to_disk_choppers in ess/reduce/nexus/workflow.py and trace how it passes chopper fields to DiskChopper.from_nexus. Check the logged rotation_speed and delay values in the simulated file and the scalar-variable requirement reported by scippneutron. Done means the workflow handles constant logged values or reports a clear error naming the field and the suggested step.

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

説明

essreduce essspectroscopy
from ess.bifrost import BifrostSimulationWorkflow, data
from ess.spectroscopy.types import (Filename, LookupTableRelativeErrorThreshold,
                                    NormalizedIncidentEnergyDetector, SampleRun)

wf = BifrostSimulationWorkflow()
wf[Filename[SampleRun]] = data.simulated_elastic_incoherent_with_phonon()
wf[LookupTableRelativeErrorThreshold] = {k: float('inf') for k in
    ['detector', 'monitor', 'normalization_monitor', 'elastic_monitor']}
wf.compute(NormalizedIncidentEnergyDetector[SampleRun])
# DimensionError: Chopper field 'rotation_speed' must be a scalar variable, got a 1d variable.

With wavelength_from='analytical' now the default, the workflow builds DiskChoppers. to_disk_choppers (ess/reduce/nexus/workflow.py) passes each chopper's fields to DiskChopper.from_nexus unchanged, and that refuses logged values (scipp/scippneutron#731). Files that log rotation_speed/delay once per setting, as this one does, therefore fail. Without the threshold the workflow first stops on the missing LookupTableRelativeErrorThreshold (#186).

Suggestion: reduce a constant log to its value in to_disk_choppers, or refuse with a message that names the field and the step to add.

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 を短くまとめたダイジェスト。