Skip to content

saving_signal

Saving parameters set by the user.

ExportType #

Bases: Enum

Type of model export.

Source code in src/careamics_napari/signals/saving_signal.py
class ExportType(Enum):
    """Type of model export."""

    CKPT = "Checkpoint"
    """PyTorch Lightning checkpoint."""

    BMZ = "Bioimage.io"
    """Bioimage.io model format."""

    @classmethod
    def list(cls) -> list[str]:
        """List of all available export types.

        Returns
        -------
        list of str
            List of all available export types.
        """
        return [c.value for c in cls]

BMZ = 'Bioimage.io' class-attribute instance-attribute #

Bioimage.io model format.

CKPT = 'Checkpoint' class-attribute instance-attribute #

PyTorch Lightning checkpoint.

list() classmethod #

List of all available export types.

Returns:

Type Description
list of str

List of all available export types.

Source code in src/careamics_napari/signals/saving_signal.py
@classmethod
def list(cls) -> list[str]:
    """List of all available export types.

    Returns
    -------
    list of str
        List of all available export types.
    """
    return [c.value for c in cls]