Skip to content

Commit 889e920

Browse files
committed
Short-circuit rendering on no 1d-data; avoid m4 layer crash
1 parent 1aab9f1 commit 889e920

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

piker/ui/_render.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def render(
192192

193193
) = fmt_out
194194

195+
if not x_1d.size:
196+
log.warning(f'{array_key} has no `.size`?')
197+
return
198+
195199
# redraw conditions
196200
if (
197201
prepend_length > 0

0 commit comments

Comments
 (0)