Coverage for openhcs/processing/backends/analysis/__init__.py: 55.6%

9 statements  

« prev     ^ index     » next       coverage.py v7.10.3, created at 2025-08-14 05:57 +0000

1""" 

2Image analysis backend implementations. 

3 

4This package contains implementations of various image analysis algorithms 

5for different memory backends (NumPy, CuPy, PyTorch, TensorFlow, JAX). 

6 

7Doctrinal Clauses: 

8- Clause 3 — Declarative Primacy: All functions are pure and stateless 

9- Clause 88 — No Inferred Capabilities: Explicit backend requirements 

10- Clause 106-A — Declared Memory Types: All methods specify memory types 

11- Clause 273 — Memory Backend Restrictions: GPU-only implementations are marked 

12""" 

13 

14# Import DXF mask pipeline 

15try: 

16 from openhcs.processing.backends.analysis.dxf_mask_pipeline import \ 

17 dxf_mask_pipeline 

18except ImportError: 

19 pass 

20 

21# Import focus analyzer 

22try: 

23 from openhcs.processing.backends.analysis.focus_analyzer import \ 

24 FocusAnalyzer 

25except ImportError: 

26 pass 

27 

28# Auto-registration is now handled centrally in func_registry._scan_and_register_functions() 

29# No need to trigger it here anymore 

30 

31__all__ = [ 

32 # DXF mask pipeline 

33 "dxf_mask_pipeline", 

34 

35 # Focus analyzer 

36 "FocusAnalyzer", 

37]