Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple viewer example #5796

Merged
merged 4 commits into from May 10, 2023

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented May 2, 2023

Fixes/Closes

Closes #5778

Description

After changes in Dims there is a need to fix this example.

References

Type of change

  • Bug-fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

  • example: the test suite for my feature covers cases x, y, and z
  • example: all tests pass with my change
  • example: I check if my changes works with both PySide and PyQt backends
    as there are small differences between the two Qt bindings.

Final checklist:

  • My PR is the minimum possible work for the desired functionality
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • If I included new strings, I have used trans. to make them localizable.
    For more information see our translations guide.

@Czaki Czaki added the bugfix PR with bugfix label May 2, 2023
@Czaki Czaki added this to the 0.5.0 milestone May 2, 2023
@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #5796 (c2fde45) into main (19867df) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5796      +/-   ##
==========================================
+ Coverage   89.83%   89.89%   +0.06%     
==========================================
  Files         614      614              
  Lines       52210    52283      +73     
==========================================
+ Hits        46901    47001     +100     
+ Misses       5309     5282      -27     
Impacted Files Coverage Δ
napari/components/dims.py 99.43% <100.00%> (ø)

... and 12 files with indirect coverage changes

Copy link
Contributor

@GenevieveBuckley GenevieveBuckley left a comment

Choose a reason for hiding this comment

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

Nice fix, thank you!

Request adding viewer.open_sample('napari', 'cells3d') or similar to the end of the Multiple viewer widget example script. Then that can be the test ensuring #5778 does not happen again without us knowing (assuming eventually we will run the example scripts in CI).

@GenevieveBuckley
Copy link
Contributor

I don't know why only one CI job failed to complete. I'm re-running it now with debug logging turned on: https://github.com/napari/napari/actions/runs/4924316285/jobs/8814505444

@GenevieveBuckley
Copy link
Contributor

The "macos-latest 3.9 pyqt5" tests passed on the second run, so I'm guessing the CI was just a bit flaky the first time.

Merging now that all the CI checks have passed. Thank you @Czaki 🎉

@GenevieveBuckley GenevieveBuckley merged commit 7912111 into napari:main May 10, 2023
33 checks passed
@Czaki Czaki deleted the bugfxi/fix_multiple_viewer branch May 10, 2023 07:22
@Czaki Czaki mentioned this pull request Jun 7, 2023
@Czaki Czaki added the triaged-0.4.18 To mark PR that is triaged in 0.4.18 release process label Jun 16, 2023
@Czaki Czaki modified the milestones: 0.5.0, 0.4.18 Jun 16, 2023
Czaki added a commit that referenced this pull request Jun 19, 2023
Closes #5778

After changes in Dims there is a need to fix the multiple_viewer_widget example script.

- [x] Bug-fix (non-breaking change which fixes an issue)

- [x] all tests pass with my change
- [x] the example script multiple_viewer_widget.py was run successfully and the cells3d sample dataset could be opened

Co-authored-by: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com>
Czaki added a commit that referenced this pull request Jun 21, 2023
Closes #5778

After changes in Dims there is a need to fix the multiple_viewer_widget example script.

- [x] Bug-fix (non-breaking change which fixes an issue)

- [x] all tests pass with my change
- [x] the example script multiple_viewer_widget.py was run successfully and the cells3d sample dataset could be opened

Co-authored-by: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com>
Czaki added a commit that referenced this pull request Jun 21, 2023
Closes #5778

After changes in Dims there is a need to fix the multiple_viewer_widget example script.

- [x] Bug-fix (non-breaking change which fixes an issue)

- [x] all tests pass with my change
- [x] the example script multiple_viewer_widget.py was run successfully and the cells3d sample dataset could be opened

Co-authored-by: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com>
Czaki added a commit that referenced this pull request Jun 21, 2023
Closes #5778

After changes in Dims there is a need to fix the multiple_viewer_widget example script.

- [x] Bug-fix (non-breaking change which fixes an issue)

- [x] all tests pass with my change
- [x] the example script multiple_viewer_widget.py was run successfully and the cells3d sample dataset could be opened

Co-authored-by: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix triaged-0.4.18 To mark PR that is triaged in 0.4.18 release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiple_viewer_widget.py example is broken
2 participants