You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Came across this when working with some user data:
File "C:\ProgramData\Miniconda3\envs\GMS_LIBERTEM\lib\site-packages\libertem\viz\base.py", line 158, in __init__
channel, eligible_channels
ValueError: channel intensity not found or not plottable, have: []
as the dataset has a shape (1, 600, sy, sx). The issue comes from our filtering of plottable buffers to those with a 2D shape after a .squeeze.
I think we could afford to be more selective in this function, for example 2D nav or sig buffers with no extra_shape or a 'squeezeable' extra shape can remain 2D even if any of their first two dimensions are 1.
Of course it's not necessarily useful to plot a (1, 600) image, but supporting it would prevent the need for special-casing in user code unless that's desired (to get a graph-style plot, for example)!
The text was updated successfully, but these errors were encountered:
Came across this when working with some user data:
as the dataset has a shape
(1, 600, sy, sx)
. The issue comes from our filtering of plottable buffers to those with a 2D shape after a.squeeze
.LiberTEM/src/libertem/viz/base.py
Lines 74 to 80 in da4230c
I think we could afford to be more selective in this function, for example 2D
nav
orsig
buffers with noextra_shape
or a 'squeezeable' extra shape can remain 2D even if any of their first two dimensions are 1.Of course it's not necessarily useful to plot a
(1, 600)
image, but supporting it would prevent the need for special-casing in user code unless that's desired (to get a graph-style plot, for example)!The text was updated successfully, but these errors were encountered: