[ESSSANS] Masking (Loki, partially Skadi)

Abierto
#767 1 comentario 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@nvaytet ya está trabajando en esto.

Desde el 8/10/2026.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

The issue names no files, tests, or entry points, so first map where Loki and Skadi masking and SciCat persistence are handled. Done would require agreed designs for static and dynamic masks, coverage of beam stops, detector screening, broken tubes, and sample-environment limits, plus the requested interactive tooling.

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

Descripción

What
  • We need differents kinds of masks
  • Some masks are static and pre-defined by instrument scientists, other are dependent on the sample-environement or instrument setup in general (but also defined by instrument scientist, for the user).
  • Static masks need to be available in SciCat outside user proposal
  • Dynamic masks will also need to be saved on SciCat, inside the user proposal
Kinds of masks

The following is specific for Loki, some of this would apply also to Skadi:

1. Beam stop

Tracked in #847.

2. Detector screening

Rear (or mid window-frame detectors) are in the "shade" of the front/mid window-frame detectors. Those regions must be masked. Can probably be static after hot-commissioning. Shapes are quite complicated so it is not clear if a simple geometric approximation can be done, or whether it would need to be drawn and defined by hand. Should this be based on a simulation, like the following:

Image

Note:

  • This might depend on the sample position (per-experiment)
  • The mask on the rear bank would depend on the carriage position, but it looks like the masks for this bank is quite simple (inner edges from mid detectors?) so a geometric definition based on sample and detector positions might be feasible.
3. Broken straws or tubes
  • Will be permanent (until tubes fixes, i.e., need mechanism to timestamp and replace mask files)
  • A simple tool to do this is needed interactively.
  • Simple conditions like "tubes with 0 counts" are not adequate, defects can show up in various ways, e.g., counts lumped together on one end, etc.

Suggestion:

  • Use existing LokiBankViewer an extend it.
  • Two modes, tube-mode and straw-mode
  • Clicking a row (maybe with a special tool to be activated) toggles masking it -- depending on the mode the row corresponds to toggling the masking of a tube or a straw.
  • Output should be a tube-mask and a straw-mask. We should assume these are applied after folding of the detectors, i.e., these can be small lower-dimensional masks, not for every pixel.
4. Other
  • Some sample envs may not allow for full scattering angle, so we might need to mask everything above, say, 20 deg.
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.