You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating affinder CI failures, I found that #5967 broke affinder's tests. (btw if you've never heard of git bisect run you should try it! 馃槏) The reason is this line which removes the data event emitter from the setter but doesn't replace it with the new style.
It seems to have been simply missed. @melonora was this intentional? I can't imagine the reason for it other than an oversight! 馃槄
Fix incoming.
To Reproduce
importnapariimportnumpyasnplayer=napari.layers.Points(np.random.random((5, 3)))
layer.events.data.connect(lambdaev: print(ev))
print('adding a single point')
layer.add(np.random.random((1, 3))) # prints okprint('setting data')
layer.data=np.random.random((8, 3)) # nothing happensprint('done')
Closes#6116
# Description
Adds back an event emission from the Points layer data setter. Commits
summary:
- Add failing test for layer data setter event
- Emit event on points data setter
## Type of change
<!-- Please delete options that are not relevant. -->
- [x] Bug-fix (non-breaking change which fixes an issue)
---------
Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
Closes#6116
# Description
Adds back an event emission from the Points layer data setter. Commits
summary:
- Add failing test for layer data setter event
- Emit event on points data setter
## Type of change
<!-- Please delete options that are not relevant. -->
- [x] Bug-fix (non-breaking change which fixes an issue)
---------
Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
馃悰 Bug
While investigating affinder CI failures, I found that #5967 broke affinder's tests. (btw if you've never heard of
git bisect run
you should try it! 馃槏) The reason is this line which removes the data event emitter from the setter but doesn't replace it with the new style.It seems to have been simply missed. @melonora was this intentional? I can't imagine the reason for it other than an oversight! 馃槄
Fix incoming.
To Reproduce
Result:
Expected result (and result before 96516da):
Environment
napari main / napari 0.4.18.
The text was updated successfully, but these errors were encountered: