Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add scatter figure test#137

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ruaridhg merged 2 commits intomatplotlib:mainfromdstansby:scatter-test
May 31, 2023
Merged

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedMay 31, 2023
edited
Loading

Adds a figure test for scattering two images against each other.

The fix to previous issues we were having was adding the linewidget = ScatterWidget(viewer). For some reason, storing the widget in a variable instead of just doingfigure = ScatterWidget(viewer).figure makes the callbacks work properley... I'm not entirely sure why, and I don't propose to enter that rabbit hole.

ruaridhg reacted with thumbs up emoji
@dstansbydstansby requested a review fromruaridhgMay 31, 2023 12:43
Copy link
Collaborator

@ruaridhgruaridhg left a comment

Choose a reason for hiding this comment

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

Works for me locally!

@ruaridhg
Copy link
Collaborator

I think the tests are failing because a similar issue to#129 where the order is inconsistent so generating the test figure can switch from astronaut vs astronaut_reversed to astronaut_reversed vs astronaut meaning the image comparison fails

@dstansby
Copy link
MemberAuthor

I'm guessing that's because the selected layers are stored in aset(), which doesn't guarentee the order of layers. Let me see if I can think of a fix for the tests.

ruaridhg reacted with thumbs up emoji

@dstansbydstansby marked this pull request as ready for reviewMay 31, 2023 13:16
@dstansby
Copy link
MemberAuthor

To give the layers a deterministic order, I've sorted them by their name - do you think that's a good soluiton?

@dstansbydstansby requested a review fromruaridhgMay 31, 2023 13:32
Copy link
Collaborator

@ruaridhgruaridhg left a comment

Choose a reason for hiding this comment

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

It works for the tests, but does that mean that it will always plot based on alphabetical order rather than order of selecting within napari? I guess it's still probably worth merging for now

@ruaridhgruaridhg added this pull request to the merge queueMay 31, 2023
Merged via the queue intomatplotlib:main with commit1af4e64May 31, 2023
@ruaridhgruaridhg mentioned this pull requestMay 31, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ruaridhgruaridhgruaridhg approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dstansby@ruaridhg

[8]ページ先頭

©2009-2025 Movatter.jp