IMDv2 support and tests for receiving positions

Abierto
#140 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@amruthesht ya está trabajando en esto.

Desde el 1/6/2026.

  • #141 de @amruthesht — abierto

Evaluación

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

Línea de trabajo

The request is to make the imdclient frame loop read IMDv2 energies and positions in a fixed order, reusing the last energies when none arrive and warning when several arrive. Work is already under way in linked pull request #141, so read that PR and its diff before touching anything. Done means the stream handling follows the described schema and tests cover receiving positions, including the case where energies are missing or repeated.

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

Descripción

Is your feature request related to a problem?

Currently, IMDv2 support in imclient is limited and relies on certain assumptions about packet order. It would be ideal to have more generic support for IMDv2 usage using imdclient.

Describe the solution you'd like

It would be ideal for the client to treat an incoming stream of data using the following schema

  1. For each loop step of reading frames - expect packets in order - energies followed by positions
    1a. Store energy values temporarily. If multiple energy values are received before a position packet comes through, overwrite and use the latest energy values for the frame (with appropriate warning messages.
    1b. If at a certain step no energies are received, or rather positions are received before energies, use previously stored energies and move onto the next step.

Describe alternatives you've considered

Possible alternatives include matching energies by maintaining an array of previously stored energies. Doesn't come with an upside as these global energies are hardly useful for any analysis purposes.

Additional context

Lenguaje dominante
Python
Estrellas
13
Forks
3
Merge medio
12 d 14 h
PR fusionados (30 d)
1

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 Becksteinlab/imdclient

Todos los issues de Becksteinlab/imdclient

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.