Skip to content
Snippets Groups Projects
Commit 99b5ff54 authored by David Grundfest's avatar David Grundfest
Browse files

Init

parent 584302ea
Branches
No related tags found
2 merge requests!117New Layered Surface Segmentation,!42Layered Surface Segmentation Feature
"""qim3d: A Python package for 3D image processing and visualization.
The qim3d library is designed to make it easier to work with 3D imaging data in Python.
It offers a range of features, including data loading and manipulation,
image processing and filtering, visualization of 3D data, and analysis of imaging results.
Documentation available at https://platform.qim.dk/qim3d/
"""
__version__ = "0.4.1"
import importlib as _importlib
class _LazyLoader:
"""Lazy loader to load submodules only when they are accessed"""
def __init__(self, module_name):
self.module_name = module_name
self.module = None
def _load(self):
if self.module is None:
self.module = _importlib.import_module(self.module_name)
return self.module
def __getattr__(self, item):
module = self._load()
return getattr(module, item)
# List of submodules
_submodules = [
"examples",
"generate",
"gui",
"io",
"models",
"processing",
"tests",
"utils",
"viz",
"cli",
]
# Creating lazy loaders for each submodule
for submodule in _submodules:
globals()[submodule] = _LazyLoader(f"qim3d.{submodule}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment