Skip to content

chore: rename BuildingStockProcessor to BuildStockProcessor#34

Merged
nllong merged 1 commit into
mainfrom
chore/rename-buildstock-processor
Jul 25, 2026
Merged

chore: rename BuildingStockProcessor to BuildStockProcessor#34
nllong merged 1 commit into
mainfrom
chore/rename-buildstock-processor

Conversation

@nllong

@nllong nllong commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

Renames the shared base class introduced in #32 to match NREL's actual "BuildStock" branding for the underlying analysis platform both ComStock and ResStock are built on.

Stacked on #33 (building search) — this targets that branch, not main, so it will show that PR's diff too until it merges.

What changed

Pure rename, no behavioral changes:

  • building_stock_processor.pybuildstock_processor.py
  • BuildingStockProcessorBuildStockProcessor
  • BuildingStockReleaseBuildStockRelease
  • tests/test_building_stock_processor.pytests/test_buildstock_processor.py

Updated all imports/usages in comstock_processor.py, resstock_processor.py, the test suite, pyproject.toml's mypy files list, and README.md. Confirmed no leftover references to the old names anywhere in the repo.

Validation

  • uv run pytest tests/ -m unit ✅ (29 passed)
  • uv run pytest tests/ -m integration ✅ (33 passed)
  • uv run mypy ✅ (7 source files)
  • uv run pre-commit run --all-files
  • grep -rn "BuildingStockProcessor\|BuildingStockRelease\|building_stock_processor" . → no matches

Base automatically changed from feat/support-building-search to feat/support-resstock July 24, 2026 09:17
Base automatically changed from feat/support-resstock to main July 25, 2026 02:59
Now that the shared base class supports both ComStock and ResStock, rename
it (and its dataclass/module) to match NREL's actual "BuildStock" branding
for the underlying analysis platform both datasets are built on:

- building_stock_processor.py -> buildstock_processor.py
- BuildingStockProcessor -> BuildStockProcessor
- BuildingStockRelease -> BuildStockRelease
- tests/test_building_stock_processor.py -> tests/test_buildstock_processor.py

Updated all imports/usages in comstock_processor.py, resstock_processor.py,
the test suite, pyproject.toml's mypy file list, and README.md. No
behavioral changes -- purely a rename, verified with the full test suite,
mypy, and pre-commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nllong
nllong force-pushed the chore/rename-buildstock-processor branch from 50dec63 to 1a6892d Compare July 25, 2026 03:00
@nllong
nllong merged commit 9d548b1 into main Jul 25, 2026
4 checks passed
@nllong
nllong deleted the chore/rename-buildstock-processor branch July 25, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant