Skip to content

Clean up layer selection API #128

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 19, 2023
Merged

Conversation

dstansby
Copy link
Member

Again, while working on #127 I realised the API for doing stuff when the layer selection is changed wasn't clear. I've added more to the NapariMPLWidget docstring explaining this, and switched:

  • on_layer_selection() from private to public, since derived classes are meant to override this
  • update_layers() from public to private, since derived classes are not meant to override this

@dstansby dstansby marked this pull request as ready for review May 19, 2023 14:21
@dstansby dstansby requested a review from samcunliffe May 19, 2023 14:21
@dstansby dstansby assigned ruaridhg and unassigned ruaridhg May 19, 2023
@dstansby dstansby requested a review from ruaridhg May 19, 2023 14:22
@ruaridhg
Copy link
Collaborator

This might help or hinder my test_scatter that's currently not ready to review #121 and #129

Copy link
Collaborator

@ruaridhg ruaridhg left a comment

Choose a reason for hiding this comment

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

LGTM

@ruaridhg ruaridhg added this pull request to the merge queue May 19, 2023
Merged via the queue into matplotlib:main with commit bbbe173 May 19, 2023
@dstansby dstansby deleted the selection-api branch May 19, 2023 15:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants