[ESSSPECTROSCOPY] `save_sqw` fails for a run whose detector tank doesn't move

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
data

調査の方向性

Start in sqw.py at _make_experiments around line 434 and trace how save_sqw flattens a4 and a3 into setting. Reproduce with data.coda_test_run_2026_11() and check the static-motor case where final_energy lacks a4; done when save_sqw succeeds for that case and the moving-tank behavior still works.

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

説明

essspectroscopy

On data.coda_test_run_2026_11() (all motors static), IncidentEnergyDetector from BifrostWorkflow has final_energy with dims (arc, tube, channel, length), with no a4. save_sqw flattens a4 and a3 into setting, then _make_experiments (sqw.py:434) does final_energy['setting', i] and raises DimensionError: Expected dimension to be in [detector:13500, ], got setting. When the tank moves, final_energy carries a4 and the call works.

Suggestion: broadcast final_energy to setting before indexing.

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