Commit graph

4 commits

Author SHA1 Message Date
Mac DeCourcy
37267fbf34 Add lean percentage to regional data
- Add LeanPercent column to regional.csv matching BodySpec reports
- Calculate lean percentage from lean tissue (excluding BMC) for accuracy
- Update JSON output to include lean_percent for each region
- Document new column in README
- Values now match BodySpec regional reports (e.g., Arms: 73.7%, Legs: 72.7%, Trunk: 64.4%)
2025-10-06 17:44:16 -07:00
Mac DeCourcy
b046af5d25 feat: smart batch processing with skip logic
- Change --batch to accept directory instead of glob pattern
- Automatically skip already-processed scan dates
- Add --force flag to reprocess all files
- Fix date extraction regex to parse from client info line
- Display helpful tips about skipping/forcing
- Better user feedback with skip counts and suggestions

Usage:
  python dexa_extract.py --batch data/pdfs --height-in 74 --outdir data/results

This will process only new scans, skipping any dates already in the output.
2025-10-06 15:33:05 -07:00
Mac DeCourcy
d6793e2572 feat: add comprehensive error handling and validation
- Add input validation for PDF files, height, and weight
- Validate PDF file exists, is a file, and has .pdf extension
- Check height range (36-96 inches) and weight range (50-500 lbs)
- Add warnings for missing critical data
- Improve user feedback with emojis and clear error messages
- Better output formatting with file descriptions
- Catch and handle PDF reading errors gracefully
2025-10-06 15:24:11 -07:00
Mac DeCourcy
c7d0255f61 Initial commit: BodySpec Insights - comprehensive DEXA analytics tool 2025-10-06 14:32:25 -07:00