Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

LiveTable failed to format row

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

まず、リンク先の行にある bluesky/callbacks/core.py の例外キャッチから始め、示されているとおりに adaptive_scan と list_scan を使って失敗を再現します。エラーを引き起こす行の値を比較し、報告されている int と float の違いも確認します。LiveTable がこれらの行をフォーマットし、「failed to format row」を出力せずにスキャンが正常に続行されれば完了です。

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

説明

Expected Behavior

Live table shouldn't fail to format a row.

Current Behavior

LiveTable occasionally has issues formatting rows. We saw this first in a slack thread James Cryan in bp.list_scan.

Later seen by me in bp.adaptive_scan

This does not stop the scan from running, just breaks the terminal outputs. Originates from this exception catch.

Possible Solution

??? Possibly something to do with floats and ints?

Steps to Reproduce (for bugs)

In [3]: from bluesky.plans import adaptive_scan
   ...: from ophyd.sim import motor, det
   ...:
   ...: RE(adaptive_scan([det], 'det', motor,
   ...:                  start=-15,
   ...:                  stop=10,
   ...:                  min_step=0.01,
   ...:                  max_step=5.,
   ...:                  target_delta=.05,
   ...:                  backstep=True))


Transient Scan ID: 2     Time: 2022-04-19 13:33:54
Persistent Unique Scan ID: '22ecca5f-4be2-4645-ad7c-f557d3a4db61'
New stream: 'primary'
+-----------+------------+------------+------------+
|   seq_num |       time |      motor |        det |
+-----------+------------+------------+------------+
|         1 | 13:33:54.2 |        -15 |   1.39e-49 |
 failed to format row
 failed to format row
 failed to format row

RE(bp.list_scan([daq], photon_energy, list1))
image
(resolved by defining the list as floats, not int)

Context

Your Environment

pcds-5.3.1

主要言語
Python
スター
1
フォーク
18
平均マージ
7日 9時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

pcdshub/hutch-python のほかの issue

pcdshub/hutch-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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