Coverage for openhcs/microscopes/__init__.py: 100.0%

3 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-04 02:09 +0000

1""" 

2Microscope-specific implementations for openhcs. 

3 

4This package contains modules for different microscope types, each providing 

5concrete implementations of FilenameParser and MetadataHandler interfaces. 

6 

7The package uses automatic discovery to find and register all handler implementations, 

8following OpenHCS generic solution principles. All handlers are automatically 

9discovered and registered via metaclass during discovery - no hardcoded imports needed. 

10""" 

11 

12# Import base components and factory function 

13from openhcs.microscopes.microscope_base import create_microscope_handler 

14 

15# Import registry service for automatic discovery 

16from openhcs.microscopes.handler_registry_service import ( 

17 get_all_handler_types, 

18 is_handler_available 

19) 

20 

21# Note: Individual handlers are automatically discovered via LazyDiscoveryDict on first access. 

22# No hardcoded imports or explicit discovery calls needed. 

23 

24__all__ = [ 

25 # Factory function - primary public API 

26 'create_microscope_handler', 

27 # Registry service functions 

28 'get_all_handler_types', 

29 'is_handler_available', 

30]