diff --git a/package/PartSeg/common_backend/base_settings.py b/package/PartSeg/common_backend/base_settings.py index f5ad8283b..d0f2a866a 100644 --- a/package/PartSeg/common_backend/base_settings.py +++ b/package/PartSeg/common_backend/base_settings.py @@ -13,6 +13,7 @@ import napari.utils.theme import numpy as np +import pint from napari.qt import get_stylesheet from napari.utils import Colormap from napari.utils.theme import get_theme @@ -471,6 +472,7 @@ def __init__(self, json_path: Union[Path, str], profile_name: str = "default"): self.history_index = -1 self.last_executed_algorithm = "" self._points = None + pint.get_application_registry()("nm") # enforce pint registry initialization def _image_changed(self): super()._image_changed()