File size: 662 Bytes
beb4f15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Fiberpose: distance-transform-based segmentation and morphometry of fibrous microstructures."""

__version__ = "0.1.0"

__all__ = ["AnalysisResult", "AppConfig", "FiberposeError", "analyze", "__version__"]


def __getattr__(name):
    # Imported lazily so `import fiberpose` and `fiberpose --help` stay fast
    # and don't load ONNX Runtime or compile numba kernels.
    if name in ("AnalysisResult", "FiberposeError", "analyze"):
        from . import api

        return getattr(api, name)
    if name == "AppConfig":
        from .domain import AppConfig

        return AppConfig
    raise AttributeError(f"module 'fiberpose' has no attribute {name!r}")