Skip to content

Conversation

loichuder
Copy link
Member

Fix #4432

@loichuder loichuder requested a review from EdgarGF93 September 30, 2025 09:27
self.getAggregationModeAction().getAggregationMode()
)
elif image.ndim == 3:
imageItem = items.ImageRgba()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a quick fix. I think the best thing would be to handle the aggregation inside the addImage method of self._plot to avoid duplicating the behaviour of it.

We will have to discuss it together.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, the toolbar would also need to be updated accordingly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, see #4434

Let's leave it like that for now and think later of a refactoring with a bigger scope.

self.__views = {}
self.__currentView = None

def getCurrentView(self):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the newly added tests

@t20100 t20100 merged commit 9b91ef6 into main Oct 17, 2025
6 of 8 checks passed
@t20100 t20100 deleted the fix-nx-rgb-display branch October 17, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[silx view] NXdata with rgba-image interpretation cannot be displayed

2 participants