feat: Update create-study skill with Phase 1.3 logging and create UAV arm test study
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>
This commit is contained in:
@@ -237,6 +237,18 @@ Generate a complete Python script based on protocol:
|
||||
- Storage location
|
||||
- Results display and dashboard instructions
|
||||
|
||||
**IMPORTANT**: Always include structured logging from Phase 1.3:
|
||||
- Import: `from optimization_engine.logger import get_logger`
|
||||
- Initialize in main(): `logger = get_logger("{study_name}", study_dir=results_dir)`
|
||||
- Replace all print() with logger.info/warning/error
|
||||
- Use structured methods:
|
||||
- `logger.study_start(study_name, n_trials, sampler)`
|
||||
- `logger.trial_start(trial.number, design_vars)`
|
||||
- `logger.trial_complete(trial.number, objectives, constraints, feasible)`
|
||||
- `logger.trial_failed(trial.number, error)`
|
||||
- `logger.study_complete(study_name, n_trials, n_successful)`
|
||||
- Error handling: `logger.error("message", exc_info=True)` for tracebacks
|
||||
|
||||
**Template**: Use [studies/drone_gimbal_arm_optimization/run_optimization.py](../studies/drone_gimbal_arm_optimization/run_optimization.py:1) as reference
|
||||
|
||||
### 4. reset_study.py
|
||||
|
||||
Reference in New Issue
Block a user