Skip to content

Async slicing vector proto#23

Merged
andy-sweet merged 19 commits intoandy-sweet:async-slice-protofrom
kcpevey:async_slicing_vector_proto
Sep 2, 2022
Merged

Async slicing vector proto#23
andy-sweet merged 19 commits intoandy-sweet:async-slice-protofrom
kcpevey:async_slicing_vector_proto

Conversation

@kcpevey
Copy link
Copy Markdown

@kcpevey kcpevey commented Aug 10, 2022

Description

Implement vector async slicing

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

References

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.

@kcpevey
Copy link
Copy Markdown
Author

kcpevey commented Aug 19, 2022

I'm not sure how much further to take this. I could continue but then I feel like I'd just be writing the "real" code.

@kcpevey kcpevey marked this pull request as ready for review August 19, 2022 13:27
@github-actions github-actions Bot added the qt label Aug 22, 2022
Comment thread napari/_vispy/layers/vectors.py Outdated

self.reset()
self._on_data_change()
# self._on_data_change()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This needs to be addressed, along with line 17.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I've uncommented the on_data_change to allow some methods to function (edge_color changes). There is still an open question of how we will handle these events that don't require an entire reslice event. I think there may be a reasonable path forward with the SliceInput/Output state implementation.

Comment thread napari/components/_layer_slicer.py
Comment thread napari/layers/image/image.py Outdated
Comment thread napari/layers/image/image.py
@github-actions github-actions Bot removed the qt label Aug 26, 2022
Comment thread napari/layers/vectors/vectors.py
Comment thread napari/layers/vectors/vectors.py Outdated
Copy link
Copy Markdown
Owner

@andy-sweet andy-sweet left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'll merge this in!

@andy-sweet andy-sweet merged commit e2ee269 into andy-sweet:async-slice-proto Sep 2, 2022
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.

2 participants