Skip to content

fix: make un_enerdata_demand_2050_final.csv an optional input - #59

Merged
JanTautorus merged 1 commit into
mainfrom
fix/optional-local-demand-input
Aug 12, 2026
Merged

fix: make un_enerdata_demand_2050_final.csv an optional input#59
JanTautorus merged 1 commit into
mainfrom
fix/optional-local-demand-input

Conversation

@JanTautorus

Copy link
Copy Markdown
Collaborator

data/un_enerdata_demand_2050_final.csv is a manually-provided, gitignored file that was unconditionally required by prepare_regional_network, calculate_regional_lcox, and model_trade, even though it's only actually read on the 'reserved' supply-curve scenario (local demand reservation target) and the unused 'hydrogen' final-product branch of model_trade.py. With the current default scenario (allocated_share) and final_product (steel), the file was dead weight that still had to exist on disk for the DAG to build.

Make the input conditional on when it's actually consumed, so runs using allocated_share/unreserved or the steel chain no longer need it.

data/un_enerdata_demand_2050_final.csv is a manually-provided, gitignored
file that was unconditionally required by prepare_regional_network,
calculate_regional_lcox, and model_trade, even though it's only actually
read on the 'reserved' supply-curve scenario (local demand reservation
target) and the unused 'hydrogen' final-product branch of model_trade.py.
With the current default scenario (allocated_share) and final_product
(steel), the file was dead weight that still had to exist on disk for the
DAG to build.

Make the input conditional on when it's actually consumed, so runs using
allocated_share/unreserved or the steel chain no longer need it.
@JanTautorus
JanTautorus merged commit 1197f15 into main Aug 12, 2026
@JanTautorus
JanTautorus deleted the fix/optional-local-demand-input branch August 12, 2026 14:31
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