Commit Graph

12 Commits

Author SHA1 Message Date
dcc4f5d26b convertito in formato unix sync enhanced 2025-10-13 22:41:22 +02:00
6d1bc7db4d Add example Claude sync request file 2025-10-13 16:03:52 +02:00
77c0ad5e43 Add Claude Code batch/script integration
Created comprehensive guide and enhanced sync script for integrating Claude Code
into automated workflows:

1. CLAUDE_INTEGRATION.md:
   - 6 different integration options (CLI, file request, git hooks, GitHub Actions, API)
   - Detailed examples for each approach
   - Pros/cons and use case recommendations
   - Best practices and troubleshooting

2. sync_server_file_enhanced.sh:
   - Enhanced version of sync_server_file.sh
   - Automatic MATLAB file change detection
   - Intelligent module mapping (MATLAB → Python)
   - Auto-generates formatted request for Claude
   - Colored output with progress steps
   - Clipboard integration (xclip)
   - Editor auto-open option

Features:
 Detects which Python modules need updating
 Creates markdown request with diff preview
 Shows affected files and modules
 Copies request to clipboard automatically
 Provides step-by-step instructions
 Commits MATLAB changes with metadata

Workflow:
1. Run: ./sync_server_file_enhanced.sh
2. Script syncs MATLAB files from server
3. Auto-detects changes and creates request file
4. Open Claude Code and paste/provide the request
5. Claude updates Python code automatically
6. Validate with validation system

Typical usage:
  ./sync_server_file_enhanced.sh
  # → Generates CLAUDE_SYNC_REQUEST_YYYYMMDD_HHMMSS.md
  # → Copy to clipboard or open in editor
  # → Provide to Claude Code for automatic Python sync

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 16:03:21 +02:00
fa30b050ce tolto -delete 2025-10-13 15:59:00 +02:00
e3c177aa6e Add comprehensive MATLAB synchronization guide
Created two documentation files to facilitate keeping Python code synchronized
with MATLAB source updates:

1. MATLAB_SYNC_GUIDE.md (comprehensive guide):
   - Complete MATLAB ↔ Python file mapping table
   - Detailed workflow for applying MATLAB updates
   - Request templates and best practices
   - Examples for different update scenarios
   - Validation procedures

2. sync_matlab_changes.md (quick reference):
   - Quick mapping reference
   - Minimal request template
   - Fast validation commands
   - TL;DR for urgent updates

Key Features:
 Clear mapping for all 30+ MATLAB files to Python modules
 Step-by-step update workflow
 Integrated validation with validation system
 Git workflow with tagging
 Examples for bug fixes, features, new sensors
 Time estimates for different update types

Usage:
When MATLAB sources change, provide list of modified files and brief
description. The guide enables rapid analysis and application of changes
to Python codebase with automated validation.

Typical turnaround: 15-60 minutes for standard updates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:57:28 +02:00
2399611b28 Update summary documents to reflect 100% completion
Both COMPLETION_SUMMARY.md and CONVERSION_SUMMARY.md have been updated to accurately reflect the current project state:

Updates:
-  ATD module: Updated from 70% to 100% (all 9 sensor types complete)
-  Added validation system section (1,294 lines)
-  Updated line counts: ~11,452 total lines (was ~8,000)
-  Added .env migration details (removed Java driver)
-  Updated all completion statuses to 100%
-  Removed outdated "remaining work" sections
-  Added validation workflow and examples

Current Status:
- RSN: 100% (5 sensor types)
- Tilt: 100% (4 sensor types)
- ATD: 100% (9 sensor types)
- Validation: 100% (full comparison framework)
- Total: 18+ sensor types, production ready

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:40:16 +02:00
23c53cf747 Add comprehensive validation system and migrate to .env configuration
This commit includes:

1. Database Configuration Migration:
   - Migrated from DB.txt (Java JDBC) to .env (python-dotenv)
   - Added .env.example template with clear variable names
   - Updated database.py to use environment variables
   - Added python-dotenv>=1.0.0 to dependencies
   - Updated .gitignore to exclude sensitive files

2. Validation System (1,294 lines):
   - comparator.py: Statistical comparison with RMSE, correlation, tolerances
   - db_extractor.py: Database queries for all sensor types
   - validator.py: High-level validation orchestration
   - cli.py: Command-line interface for validation
   - README.md: Comprehensive validation documentation

3. Validation Features:
   - Compare Python vs MATLAB outputs from database
   - Support for all sensor types (RSN, Tilt, ATD)
   - Statistical metrics: max abs/rel diff, RMSE, correlation
   - Configurable tolerances (abs, rel, max)
   - Detailed validation reports
   - CLI and programmatic APIs

4. Examples and Documentation:
   - validate_example.sh: Bash script example
   - validate_example.py: Python programmatic example
   - Updated main README with validation section
   - Added validation workflow and troubleshooting guide

Benefits:
-  No Java driver needed (native Python connectors)
-  Secure .env configuration (excluded from git)
-  Comprehensive validation against MATLAB
-  Statistical confidence in migration accuracy
-  Automated validation reports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:34:13 +02:00
876ef073fc primo commit refactory in python 2025-10-12 20:16:19 +02:00
3288b60385 bash di sync + git add 2025-10-12 20:11:47 +02:00
1cf78e4be5 Sync from remote server: 2025-10-12 20:06:15 2025-10-12 20:06:25 +02:00
749e5faf7b prova 2025-10-12 19:58:43 +02:00
7e8ee264aa Sync from remote server: 2025-10-12 18:56:41 2025-10-12 18:56:59 +02:00