feat: Add dashboard chat integration and MCP server
Major changes: - Dashboard: WebSocket-based chat with session management - Dashboard: New chat components (ChatPane, ChatInput, ModeToggle) - Dashboard: Enhanced UI with parallel coordinates chart - MCP Server: New atomizer-tools server for Claude integration - Extractors: Enhanced Zernike OPD extractor - Reports: Improved report generator New studies (configs and scripts only): - M1 Mirror: Cost reduction campaign studies - Simple Beam, Simple Bracket, UAV Arm studies Note: Large iteration data (2_iterations/, best_design_archive/) excluded via .gitignore - kept on local Gitea only. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
38
studies/UAV_Arm/uav_arm_atomizerfield_test/reset_study.py
Normal file
38
studies/UAV_Arm/uav_arm_atomizerfield_test/reset_study.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""
|
||||
Reset the UAV arm AtomizerField test study
|
||||
|
||||
Clears all optimization results and logs to start fresh.
|
||||
Preserves the setup and model files.
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
|
||||
def reset_study():
|
||||
"""Reset study to clean state."""
|
||||
|
||||
study_dir = Path(__file__).parent
|
||||
|
||||
# Remove results directory
|
||||
results_dir = study_dir / "2_results"
|
||||
if results_dir.exists():
|
||||
print(f"Removing {results_dir}...")
|
||||
shutil.rmtree(results_dir)
|
||||
|
||||
# Remove training data export directory if exists
|
||||
training_data_dir = Path("atomizer_field_training_data/uav_arm_test")
|
||||
if training_data_dir.exists():
|
||||
print(f"Removing {training_data_dir}...")
|
||||
shutil.rmtree(training_data_dir)
|
||||
|
||||
# Remove any Python cache
|
||||
pycache = study_dir / "__pycache__"
|
||||
if pycache.exists():
|
||||
print(f"Removing {pycache}...")
|
||||
shutil.rmtree(pycache)
|
||||
|
||||
print("Study reset complete!")
|
||||
print("You can now run: python run_optimization.py")
|
||||
|
||||
if __name__ == "__main__":
|
||||
reset_study()
|
||||
Reference in New Issue
Block a user