[ESSSPECTROSCOPY] `save_sqw` writes `u = [1,0,0]`, `v = [0,1,0]` whatever the crystal's orientation

Abierto
#926 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start with ess/bifrost/io/sqw.py, especially _AXIS_U and _AXIS_V and the code that writes the projection and run headers. Trace how the sample orientation and the U and B matrices are represented before deciding how to convert the pixels into crystal coordinates. Done means save_sqw writes sample-derived u and v in rlu so cuts reflect the crystal mounting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

essspectroscopy

_AXIS_U and _AXIS_V (ess/bifrost/io/sqw.py:27-28) are written into the projection and into every run header, in 1/Å rather than rlu. The pixels are sample-table momenta (z along the beam, y up), which are Horace's crystal Cartesian frame only for a crystal mounted with a*, b*, c* along x, y, z at a3 = 0. Even then the header is wrong: it says a* is along the beam. Any other mounting gives rotated cuts with no warning.

Suggestion: take u and v from the sample, convert the pixels with the U and B matrices, and write u and v in rlu.

Checked on scipp 26.11.0, scippneutron 26.10.0, essreduce 26.11.1, essspectroscopy 26.11.3.

Lenguaje dominante
Python
Estrellas
3
Forks
6
Merge medio
2 d 13 h
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scipp/ess

Todos los issues de scipp/ess

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.