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>
45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
"""
|
|
Reporting & Analysis
|
|
====================
|
|
|
|
Report generation and results analysis.
|
|
|
|
Modules:
|
|
- report_generator: HTML/PDF report generation
|
|
- markdown_report: Markdown report format
|
|
- results_analyzer: Comprehensive results analysis
|
|
- visualizer: Plotting and visualization
|
|
- landscape_analyzer: Design space analysis
|
|
"""
|
|
|
|
# Lazy imports to avoid import errors
|
|
def __getattr__(name):
|
|
if name == 'generate_optimization_report':
|
|
from .report_generator import generate_optimization_report
|
|
return generate_optimization_report
|
|
elif name == 'generate_markdown_report':
|
|
from .markdown_report import generate_markdown_report
|
|
return generate_markdown_report
|
|
elif name == 'MarkdownReportGenerator':
|
|
from .markdown_report import MarkdownReportGenerator
|
|
return MarkdownReportGenerator
|
|
elif name == 'ResultsAnalyzer':
|
|
from .results_analyzer import ResultsAnalyzer
|
|
return ResultsAnalyzer
|
|
elif name == 'Visualizer':
|
|
from .visualizer import Visualizer
|
|
return Visualizer
|
|
elif name == 'LandscapeAnalyzer':
|
|
from .landscape_analyzer import LandscapeAnalyzer
|
|
return LandscapeAnalyzer
|
|
raise AttributeError(f"module 'optimization_engine.reporting' has no attribute '{name}'")
|
|
|
|
__all__ = [
|
|
'generate_optimization_report',
|
|
'generate_markdown_report',
|
|
'MarkdownReportGenerator',
|
|
'ResultsAnalyzer',
|
|
'Visualizer',
|
|
'LandscapeAnalyzer',
|
|
]
|