Skip to content

[GUI][HDF5] Hdf5NodeView.Plot2DViewWithPlugins out of sync with silx.gui.data.DataViews_Plot2View #1127

Open
@stuart-cls

Description

@stuart-cls

When opening the Hdf5NodeView window under "Show Information" during HDF5 loading, crash during setData:

ERROR:PyMca5.PyMcaGui.PyMcaQt:<class 'AttributeError'> 'Plot2DViewWithPlugins' object has no attribute '_Plot2dView__imageItem'   File "/lib/python3.11/site-packages/silx/gui/data/DataViewer.py", line 299, in __setDataInView
    self.__currentView.setData(self.__displayedData)
  File "/lib/python3.11/site-packages/silx/gui/data/DataViews.py", line 672, in setData
    self.__currentView.setData(data)
  File "/lib/python3.11/site-packages/silx/gui/data/DataViews.py", line 1106, in setData
    self.__imageItem.setData(data=data)

Looks like there is a new .__imageItem object in silx but that was not added to the Plot2DViewWithPlugins.createWidget(). There may be other occurrences in this module, I didn't check.

This is present in the released version of 5.9.4 and master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions