juglab / napari-n2v

A self-supervised denoising algorithm.
https://juglab.github.io/napari-n2v/
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

Tools menu #14

Closed haesleinhuepf closed 2 years ago

haesleinhuepf commented 2 years ago

Hi Joran @jdeschamps ,

here comes a PR for making the denoising work from the Assistant / Tools menu as discussed here:

Some things here are optional, but step by step:

https://github.com/haesleinhuepf/napari-n2v/blob/d93c9fb54d9a473ac64ad8e43035d4cf673733be/src/napari_n2v/utils/prediction_worker.py#L39

image

This change avoids the denoiser being shown in the assistant at the moment. I will fix this on the Assistant side: https://github.com/haesleinhuepf/napari-assistant/issues/34

https://github.com/haesleinhuepf/napari-n2v/blob/d93c9fb54d9a473ac64ad8e43035d4cf673733be/src/napari_n2v/utils/prediction_worker.py#L22

https://github.com/haesleinhuepf/napari-n2v/blob/d93c9fb54d9a473ac64ad8e43035d4cf673733be/setup.cfg#L46

https://github.com/haesleinhuepf/napari-n2v/blob/d93c9fb54d9a473ac64ad8e43035d4cf673733be/setup.cfg#L47-L51

There is an alternative: You could remove the dependency to napari-tools-menu as proposed in this PR:

However, let me pitch the tools menu for a moment. We know well that users are confused from the plugins menu. It is hard to find things there because of its chaotic ordering:

image

I'm claiming that functionality is easier to find the Tools menu:

image

The drawback is pinning napari<=0.4.15 . It comes with the advantage though that updates to napari-core cannot break our plugins 🌞

Let me know what you think!

Best, Robert

jdeschamps commented 2 years ago

Thanks a lot for the PR!