Coverage for openhcs/core/steps/__init__.py: 75.0%
8 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-04 02:09 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-04 02:09 +0000
2# New API - Core interfaces
3from openhcs.core.steps.abstract import AbstractStep
4# New API - Canonical step types
5from openhcs.core.steps.function_step import FunctionStep
6# Specialized step implementations
7#from openhcs.core.steps.specialized import (CompositeStep, FocusStep,
8 #NormStep, ZFlatStep)
9# Removed StepContext, StepResult, StepState, and StepStatus imports as part of context standardization
11# Define public exports
12__all__ = [
13 # New API - Core interfaces
14 'AbstractStep',
16 # New API - Canonical step types
17 'FunctionStep',
19 # Specialized step implementations
20 # 'ZFlatStep',
21 # 'FocusStep',
22 # 'CompositeStep',
23 # 'NormStep',
24 ]
26# PERFORMANCE OPTIMIZATION: Pre-warm step editor cache at import time
27try:
28 from openhcs.config_framework import prewarm_callable_analysis_cache
29 prewarm_callable_analysis_cache(AbstractStep.__init__)
30except ImportError:
31 # Circular import during subprocess initialization - cache warming not needed
32 # for non-UI execution contexts (ZMQ server, workers, etc.)
33 pass