Phase 1.3.1 Complete - Logging Integration: 1. Updated .claude/skills/create-study.md: - Added IMPORTANT section on structured logging from Phase 1.3 - Documents logger import and initialization - Lists all structured logging methods (trial_start, trial_complete, etc.) - References drone_gimbal_arm as template 2. Created studies/uav_arm_optimization/: - Multi-objective NSGA-II study (50 trials) - Same type as drone_gimbal_arm but renamed for UAV context - Full integration with Phase 1.3 logging system - Configuration: minimize mass + maximize frequency - Running to validate complete logging system Benefits: - All future studies created via skill will have consistent logging - Production-ready error handling and file logging from day 1 - Color-coded console output for better monitoring - Automatic log rotation (50MB, 3 backups) Related: Phase 1.2 (Configuration), Phase 1.3 (Logger), Phase 1.3.1 (Integration) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
544 B
Python
17 lines
544 B
Python
"""Reset drone gimbal arm optimization study by deleting database."""
|
|
import optuna
|
|
from pathlib import Path
|
|
|
|
study_dir = Path(__file__).parent
|
|
storage = f"sqlite:///{study_dir / '2_results' / 'study.db'}"
|
|
study_name = "drone_gimbal_arm_optimization"
|
|
|
|
try:
|
|
# Delete the study
|
|
optuna.delete_study(study_name=study_name, storage=storage)
|
|
print(f"[OK] Deleted study: {study_name}")
|
|
except KeyError:
|
|
print(f"[WARNING] Study '{study_name}' not found (database may not exist)")
|
|
except Exception as e:
|
|
print(f"[ERROR] Error: {e}")
|