napari.github.io
napari.github.io copied to clipboard
Tutorial for parameter sweep with napari
Added tutorial with examples for using dask and magicgui to perform parameter sweep with napari, as suggested in issue #43
I have added three examples for the same:
- Lazy parameter sweep for a 2D periodic function using dask
- Parameter sweep using napari to visualize thresholding of an image using adaptive, Sauvola, and Niblack techniques from the scikit-image library for a range of values of
block_sizeandwindow_size - Adding
apply_thresholdmethod as a magicgui widget to napari for visualizing the thresholded image for the technique selected from the drop-down menu, and the value ofblock_sizeorwindow_sizepassed via the slider.
Also added relevant assets to demonstrate all examples to the assets/tutorials folder.
Hi!
Thank you very much for your suggestions. @BhavyaC16 and I have made the following changes:
- Made the thresholding example lazy, and also modified the code to remove duplication
- Updated the magicgui example
- Provided links to external docs wherever appropriate
- Tried to limit our text in markdown to 80-100 characters per line
- Made the suggested changes in wording
- Updated GIFs demonstrating the examples
Looking forward to your review and suggestions on this. :D
Hi folks! Can we do another pass here? If this content is ready, I can move it over to napari/napari (unless @ruhmamehek wants to do it 😄 )
Ack, boy did this one fall through the cracks which is a massive shame because this is a pretty awesome tutorial both for napari and dask.delayed! I think if the code examples all still work it's definitely worth porting over to https://github.com/napari/docs
I've made a task issue in napari/docs to revisit this. https://github.com/napari/docs/issues/329 Closing, since this won't be merged here.