BREAKING CHANGE: Module paths have been reorganized for better maintainability. Backwards compatibility aliases with deprecation warnings are provided. New Structure: - core/ - Optimization runners (runner, intelligent_optimizer, etc.) - processors/ - Data processing - surrogates/ - Neural network surrogates - nx/ - NX/Nastran integration (solver, updater, session_manager) - study/ - Study management (creator, wizard, state, reset) - reporting/ - Reports and analysis (visualizer, report_generator) - config/ - Configuration management (manager, builder) - utils/ - Utilities (logger, auto_doc, etc.) - future/ - Research/experimental code Migration: - ~200 import changes across 125 files - All __init__.py files use lazy loading to avoid circular imports - Backwards compatibility layer supports old import paths with warnings - All existing functionality preserved To migrate existing code: OLD: from optimization_engine.nx_solver import NXSolver NEW: from optimization_engine.nx.solver import NXSolver OLD: from optimization_engine.runner import OptimizationRunner NEW: from optimization_engine.core.runner import OptimizationRunner 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
714 B
Python
26 lines
714 B
Python
"""
|
|
Optimization Processors
|
|
=======================
|
|
|
|
Data processing algorithms and ML models.
|
|
|
|
Submodules:
|
|
- surrogates/: Neural network surrogate models
|
|
- dynamic_response/: Dynamic response processing (random vib, sine sweep)
|
|
"""
|
|
|
|
# Lazy import for surrogates to avoid import errors
|
|
def __getattr__(name):
|
|
if name == 'surrogates':
|
|
from . import surrogates
|
|
return surrogates
|
|
elif name == 'AdaptiveCharacterization':
|
|
from .adaptive_characterization import AdaptiveCharacterization
|
|
return AdaptiveCharacterization
|
|
raise AttributeError(f"module 'optimization_engine.processors' has no attribute '{name}'")
|
|
|
|
__all__ = [
|
|
'surrogates',
|
|
'AdaptiveCharacterization',
|
|
]
|