Skip to content

Latest commit

 

History

History
173 lines (140 loc) · 5.33 KB

File metadata and controls

173 lines (140 loc) · 5.33 KB

🧹 Repository Cleanup - October 7, 2025

What Was Done

✅ Archived Old Systems

  1. queue_pipeline (v1)archive/queue_pipeline_v1_2025-10-07/

    • Old modular pipeline with ingestion/preparation/curation
    • Superseded by cleaner queue_pipeline_v2
    • Preserved with full documentation
  2. Root Scriptsarchive/root_scripts_2025-10-07/

    • datacenter_scraper.py - Web scraper (keep for reference!)
    • test_user_urls.py - Old test script
    • gridstatus_load_projects.py - Early gridstatus experiment
    • quick_grid.py - Quick test utility
    • datacenter_projectsv2.csv - Old output data

✅ Updated .gitignore

Enhanced to ignore:

  • Generated data files (raw/, normalize/, signals/, curate/, batches/)
  • Archive contents (but keep README files)
  • Temporary outputs
  • Cache files
  • Large ISO queue snapshots (regenerate as needed)

✅ Created Clean README

New root README.md focuses on:

  • queue_pipeline_v2 only (the active system)
  • Clear project structure
  • Quick start guide
  • Common workflows
  • Troubleshooting

📊 Before vs After

Before (Cluttered Root)

DataCenterCOMPASS/
├── datacenter_scraper.py         ❌ In root
├── datacenter_projectsv2.csv     ❌ In root
├── test_user_urls.py             ❌ In root
├── gridstatus_load_projects.py   ❌ In root
├── quick_grid.py                 ❌ In root
├── queue_pipeline/               ❌ Old system
├── queue_pipeline_v2/            ✅ New system
└── README.md (980 lines, outdated) ❌

After (Clean)

DataCenterCOMPASS/
├── queue_pipeline_v2/            ✅ Main system
├── data/                         ✅ Data storage
├── config/                       ✅ Configuration
├── prompts/                      ✅ LLM prompts
├── archive/                      ✅ Old code preserved
│   ├── queue_pipeline_v1_2025-10-07/
│   └── root_scripts_2025-10-07/
├── .env                          ✅ Environment vars
├── .gitignore                    ✅ Enhanced
├── requirements.txt              ✅ Dependencies
└── README.md                     ✅ Clean, focused

🎯 What to Use Now

For Queue Analysis

USE: queue_pipeline_v2/

python -m queue_pipeline_v2.run fetch --isos ALL
python -m queue_pipeline_v2.run normalize
python -m queue_pipeline_v2.run signals
python -m queue_pipeline_v2.run curate --profile balanced --target 30

For Web Scraping Reference

REFERENCE: archive/root_scripts_2025-10-07/datacenter_scraper.py

  • Don't modify - use as reference
  • Extract patterns if needed for new scraping module

For Old Pipeline

DON'T USE: archive/queue_pipeline_v1_2025-10-07/

  • Archived for historical reference only
  • Use queue_pipeline_v2 instead

📝 Git Status

After cleanup, you should commit:

# Check what changed
git status

# Stage the cleanup
git add .
git add -u  # Stage deletions

# Commit
git commit -m "Clean repository structure: archive v1, reorganize root

- Archived queue_pipeline v1 to archive/queue_pipeline_v1_2025-10-07/
- Archived root scripts to archive/root_scripts_2025-10-07/
- Enhanced .gitignore for generated files
- Created new focused README for queue_pipeline_v2
- Repository now has clear, maintainable structure"

🔄 Future Maintenance

When Adding New Features

  1. Add to queue_pipeline_v2/ - Don't create new top-level scripts
  2. Follow layer pattern - raw → normalize → signals → curate
  3. Document changes - Update READMEs

When Deprecating Code

  1. Move to archive/ with date stamp
  2. Add ARCHIVED_README.md explaining why
  3. Update .gitignore if needed
  4. Update main README to remove references

Regenerating Data

# Data is in .gitignore - safe to regenerate
python -m queue_pipeline_v2.run fetch --isos ALL

🗂️ Archive Structure

archive/
├── queue_pipeline_v1_2025-10-07/
│   ├── queue_pipeline/            # Old pipeline code
│   └── ARCHIVED_README.md         # Why archived + migration guide
│
├── root_scripts_2025-10-07/
│   ├── datacenter_scraper.py      # Web scraper (valuable reference!)
│   ├── test_user_urls.py
│   ├── gridstatus_load_projects.py
│   ├── quick_grid.py
│   ├── datacenter_projectsv2.csv
│   ├── OLD_README.md              # Old 980-line README
│   └── ARCHIVED_README.md         # What each file was for
│
├── deprecated/                     # Very old experiments
├── experimental/                   # Early prototypes
├── legacy_queue_full/             # Historical queue data
└── legacy_queue_refactor_2025-09-26/  # Previous refactor

✅ Benefits

  1. Cleaner root - Only active system visible
  2. Clear purpose - One system to use (queue_pipeline_v2)
  3. Preserved history - Nothing deleted, everything documented
  4. Maintainable - Easy to understand and extend
  5. Git-friendly - Generated files ignored, code tracked

🎉 Result

The repository is now:

  • Clean - No clutter in root
  • Focused - One active system
  • Documented - Clear READMEs
  • Maintainable - Easy to understand
  • Reusable - Ready for development
  • Preserved - Nothing lost

Clean repo = Happy developers! 🚀