Files
Atomizer/studies/UAV_Arm/uav_arm_atomizerfield_test/reset_study.py
Anto01 73a7b9d9f1 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>
2026-01-13 15:53:55 -05:00

38 lines
1.0 KiB
Python

"""
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()