Optional BA-level project aggregation via --aggregate_projects#1360
Merged
anamileva merged 4 commits intoMay 28, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 24, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
anamileva
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--aggregate_projectsflag to 7 data toolkit scripts, allowing users to aggregate all generators to the BA-technology level instead of the default disaggregated approachCOALESCE(agg_project, gridpath_technology) || '_' || balancing_authority_code_eiawith GROUP BY, producing names likeGas_CC_CISOinstead of individual plant IDsAGG_PROJECT_NAME_STRso technologies withoutagg_projectin the key file fall back togridpath_technologyMotivation
The default disaggregated approach produces individual plant-level projects for most of the fleet. For a full WECC system, this creates a very large optimization problem that takes too long to solve on a local machine. Aggregating to the BA-technology level makes a full-system test case tractable while preserving the technology mix and capacity at each BA.
Scripts modified
project_data_filters_common.py— COALESCE inAGG_PROJECT_NAME_STReia860_to_project_portfolio_input_csvs.pyeia860_to_project_specified_capacity_input_csvs.pyeia860_to_project_load_zone_input_csvs.pyeia860_to_project_fixed_cost_input_csvs.pyeia860_to_project_availability_input_csvs.pyeia860_to_project_opchar_input_csvs.pymanual_adjustments.pyTest plan
🤖 Generated with Claude Code