[essreduce] Proton charge lookup for normalization

Abierto
#637 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
data

Línea de trabajo

Empiece por rastrear el flujo existente de normalización de proton-charge, el procesamiento de proton-charge-NXlog y las LUTs de longitud de onda descritas en la issue. El trabajo estará terminado cuando un proveedor adicional calcule el tiempo de la fuente para los eventos del detector y los paquetes posteriores puedan usarlo para seleccionar las secciones correctas del log de proton-charge, incluida cualquier corrección necesaria del acelerador al target.

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

Descripción

essreduce

Typically, a sample or reference run would be recorded for some minutes.
For proton charge normalization (for dream powder diffraction for instance), we currently find the time period over which the run was recorded, go back to the proton charge NXlog and integrate the charge over that period.

However, because of frame wrapping, it could be that some neutrons at the detector came from a pulse previous to the event_time_zero coordinate they have been assigned.
In most cases, being off by one or two pulses, over a run of several minutes would not matter.

For cases where fast recording rates are in use (fast FPS on the Orca imaging camera), this would not be the case. We would need to trace back and find the corresponding pulse for a given event_time_zero at the detector.

A solution for this would be to use the wavelength LUTs we already have. For a given event_time_offset, we find the wavelength and hence speed of the neutron. Trace backwards to find out which time at the source this corresponds to. And then find the closest previous pulse time in the nxlog.
This works as long at the proton charge nxlog contains times at the target and not at the accelerator source.
If the latter, then we would have to add an additional correction to account for the time the protons travel from accelerator source to target.

In any case, the idea here is to add an additional provider that can compute time at source. This can then be used by downstream packages to find the correct sections in the proton charge log.

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.