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

Aperta
#927 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
3
Fork
6
Merge medio
2g 13h
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scipp/ess

Tutte le issue di scipp/ess

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.