magicgui_widgets
Magicgui widgets.
layer_choice(annotation=Image, **kwargs)
#
Create a widget to select a layer from the napari viewer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
annotation | Any or None | The annotation type to filter the layers. | Image |
**kwargs | Any | Additional keyword arguments to pass to the widget. | {} |
Returns:
Type | Description |
---|---|
Widget | The widget to select a layer from the napari viewer. |
Raises:
Type | Description |
---|---|
ImportError | If napari is not installed. |
Source code in src/careamics_napari/widgets/magicgui_widgets.py
load_button(Model)
#
A button to load model files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Model | Path | The path to the model file. | required |