Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

LiveTable failed to format row

Aperta
#331 6 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Inizia dal blocco di cattura dell’eccezione in bluesky/callbacks/core.py alle righe collegate, quindi riproduci il problema usando adaptive_scan e list_scan come mostrato. Confronta i valori delle righe che attivano l’errore, inclusa la differenza segnalata tra int e float. Il lavoro è completato quando LiveTable formatta queste righe senza stampare “failed to format row”, mentre la scansione continua normalmente.

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

Descrizione

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

Lingua principale
Python
Stelle
1
Fork
18
Merge medio
7g 9h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

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 pcdshub/hutch-python

Tutte le issue di pcdshub/hutch-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.