Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add array_transform to SolutionInfo to preserve compute-time transducer pose

Abierto Apto para principiantes
#491 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
75/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
database

Línea de trabajo

Empieza por openlifu.db.session.SolutionInfo e inspecciona cómo Session.from_dict decodifica las entradas de solutions. Actualiza tests/test_database.py para el campo opcional array_transform, incluida la decodificación de dict y el comportamiento heredado de None; se considera terminado cuando el valor sobrevive a los viajes de ida y vuelta a la base de datos.

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

Descripción

Add an optional array_transform: ArrayTransform | None field to
openlifu.db.session.SolutionInfo capturing the transducer array-to-volume
transform matrix that was used when the corresponding Solution was
computed.

Motivation

Downstream (SlicerOpenLIFU) currently renders a solution's PNP / intensity
volumes by parenting them under the transducer's transform node, then snapping
the transducer to whichever virtual-fit or transducer-tracking result is
currently approved. This means:

  1. If the currently-approved VF / TT changes between compute time and display
    time, the PNP moves to the new pose rather than staying where it was
    computed.
  2. For a pre-solution (computed off a VF result), the VF approval may later
    be revoked; there is then no way to display the solution at its original
    pose because no transform survives.

The fix is to persist the exact matrix used at compute time on the
SolutionInfo provenance record. Consumers snap the transducer to that
matrix on display, so the PNP is invariant under later approval churn.

Details

  • New field SolutionInfo.array_transform: ArrayTransform | None (default
    None for legacy round-trips).
  • __post_init__ accepts a dict transparently so Session.from_dict
    decoding solutions entries produces the correct type.
  • Round-trip tests added in tests/test_database.py.

Downstream

Tracked in SlicerOpenLIFU#622: "Pre-Solution PNP overlay renders at wrong
position when navigating to Sonication Planner". That issue's fix consumes
this new field.

Lenguaje dominante
Python
Estrellas
29
Forks
20
Merge medio
4 h 31 min
PR fusionados (30 d)
6

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 OpenwaterHealth/openlifu-python

Todos los issues de OpenwaterHealth/openlifu-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.