Skip to content

Project Structure Reorganization

Latest

Choose a tag to compare

@michaelkrasa michaelkrasa released this 27 Jan 19:12
· 3 commits to main since this release

v2.6.0 - Project Structure Reorganization & Comprehensive Testing

🎯 Major Changes

Project Structure Reorganization

  • Reorganized codebase into clear directory structure:
    • src/ - Core application modules (optimizer, models, price_analyzer, etc.)
    • tests/ - Test suite with test data
    • utils/ - Utility scripts
  • Updated all imports to use new structure
  • Updated Dockerfile for Lambda deployment
  • Improved project maintainability and clarity

✨ New Features

Comprehensive Test Suite

  • Added test_december_2025.py - Full test suite against real December 2025 price data
  • Validates all optimization rules: no overlaps, proper spread, discharge validation
  • Tests against 31 days of actual Czech OTE price data

Developer Experience

  • Added AGENTS.md - Comprehensive context guide for AI agents working with the codebase
  • Updated README with new project structure and commands
  • Clear documentation of UV dependency management and Lambda deployment

🐛 Bug Fixes

  • Fixed crucial bug in optimizer.py (critical optimization logic fix)
  • Fixed timezone handling inconsistencies
  • Fixed test imports after reorganization

🔧 Improvements

  • Enhanced logging separation for Lambda vs local execution
  • Added timezone support to fix Lambda scheduling issues
  • Enabled midday arbitrage charging by sizing charge windows to discharge capacity
  • Added comprehensive configuration options for valley/discharge timing preferences

📝 Migration Notes

**Running the optimizer:**ash

Old: uv run optimizer.py

New: uv run python -m src.optimizer