IMDv2 support and tests for receiving positions

オープン
#140 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@amruthesht がすでに取り組んでいます。

2026年6月1日 から。

  • #141 @amruthesht による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
13
フォーク
3
平均マージ
12日 14時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Becksteinlab/imdclient のほかの issue

Becksteinlab/imdclient の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。