[ESSSPECTROSCOPY] Rewrite the BIFROST Bragg peak monitor guide on a run file with a real monitor

Abierto
#910 0 comentarios 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
35/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
jupyter-notebook, python

Línea de trabajo

Read docs/user-guide/bifrost/bifrost-bragg-peak-monitor.ipynb with BifrostBraggPeakMonitorWorkflow and the simulation workflow it currently uses. Run ess.bifrost.data.coda_test_run_2026_11() through BifrostBraggPeakMonitorWorkflow and the #909 tests, checking that make_q_map yields a readable IntensityQparQperp map. Done: the guide uses the real elastic_monitor and depends_on chain, the stand-in, DetectorLtotal override and simulation workflow are removed, and the guide is deleted if the map is unreadable.

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

Descripción

documentation essspectroscopy

The BIFROST Bragg peak monitor user guide (docs/user-guide/bifrost/bifrost-bragg-peak-monitor.ipynb) runs BifrostSimulationBraggPeakMonitorWorkflow on the McStas file simulated_elastic_incoherent_with_phonon, which has no Bragg peak monitor. It fakes one: assemble_detector_data_flatten merges the 300 pixels of detector bank channel_9_5_triplet into one pixel and places it at half the bank's mean position, with y set to 0. So the flight path, Q and the map do not correspond to any real instrument, and, as the guide says, no Bragg peaks are visible.

This has costs beyond the guide:

  • It documents the simulation variant, not BifrostBraggPeakMonitorWorkflow, which is what users run on run files.
  • It is the only user of BifrostSimulationBraggPeakMonitorWorkflow and of single_crystal.detector.simulation_providers.
  • The stand-in position exists only after assembly, not in EmptyDetector. #909 (computing DetectorLtotal from geometry for #908) therefore needs a temporary local DetectorLtotal override in the guide, computed from the assembled data.
Proposal

Rewrite the guide on ess.bifrost.data.coda_test_run_2026_11() with BifrostBraggPeakMonitorWorkflow. That file has a real elastic_monitor with events and its real depends_on chain on the detector tank, so nothing needs faking. The tests added in #909 reduce its 945,966 monitor events to an IntensityQparQperp map. The events are synthetic, so the guide still shows no physics, and it should say so, but it documents exactly what users run, together with make_q_map.

Then:

  • Remove the stand-in, the DetectorLtotal override from #909 and the load_sample_angle insert from the guide.
  • Remove BifrostSimulationBraggPeakMonitorWorkflow and the simulation providers it alone uses.

If the CODA events do not give a readable map, delete the guide instead, together with the simulation workflow.

🤖 Generated with Claude Code

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.