IMDv2 support and tests for receiving positions

Aperta
#140 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@amruthesht ci sta già lavorando.

Dal 1/6/2026.

  • #141 di @amruthesht — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
13
Fork
3
Merge medio
12g 14h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Becksteinlab/imdclient

Tutte le issue di Becksteinlab/imdclient

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.