feat: Major update - Physics docs, Zernike OPD, insights, NX journals, tools
Documentation: - Add docs/06_PHYSICS/ with Zernike fundamentals and OPD method docs - Add docs/guides/CMA-ES_EXPLAINED.md optimization guide - Update CLAUDE.md and ATOMIZER_CONTEXT.md with current architecture - Update OP_01_CREATE_STUDY protocol Planning: - Add DYNAMIC_RESPONSE plans for random vibration/PSD support - Add OPTIMIZATION_ENGINE_MIGRATION_PLAN for code reorganization Insights System: - Update design_space, modal_analysis, stress_field, thermal_field insights - Improve error handling and data validation NX Journals: - Add analyze_wfe_zernike.py for Zernike WFE analysis - Add capture_study_images.py for automated screenshots - Add extract_expressions.py and introspect_part.py utilities - Add user_generated_journals/journal_top_view_image_taking.py Tests & Tools: - Add comprehensive Zernike OPD test suite - Add audit_v10 tests for WFE validation - Add tools for Pareto graphs and mirror data extraction - Add migrate_studies_to_topics.py utility Knowledge Base: - Initialize LAC (Learning Atomizer Core) with failure/success patterns Dashboard: - Update Setup.tsx and launch_dashboard.py - Add restart-dev.bat helper script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
21
tests/test_insights_import.py
Normal file
21
tests/test_insights_import.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Test if insights can be imported from backend context."""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Replicate the path setup from main.py
|
||||
backend_path = Path(__file__).parent.parent / "atomizer-dashboard" / "backend" / "api"
|
||||
sys.path.insert(0, str(backend_path.parent.parent.parent.parent))
|
||||
sys.path.insert(0, str(backend_path.parent))
|
||||
|
||||
print(f"sys.path[0]: {sys.path[0]}")
|
||||
print(f"sys.path[1]: {sys.path[1]}")
|
||||
|
||||
try:
|
||||
from api.routes import insights
|
||||
print(f"insights module imported: {insights}")
|
||||
print(f"insights.router: {insights.router}")
|
||||
print(f"routes: {[r.path for r in insights.router.routes]}")
|
||||
except Exception as e:
|
||||
print(f"ERROR importing insights: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user