quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

Split industry inputs to energetic and non energetic #1369

Closed thomas-qah closed 8 months ago

thomas-qah commented 8 months ago

What?

This PR adds a migration to split the following inputs into ...energetic and ...non_energetic inputs and removes the original input:

industry_useful_demand_for_aggregated_other
industry_aggregated_other_industry_coal_share
industry_aggregated_other_industry_crude_oil_share
industry_aggregated_other_industry_hydrogen_share
industry_aggregated_other_industry_network_gas_share
industry_aggregated_other_industry_wood_pellets_share
It does so according to the follow decision-table: Old name New name / input Migration should...
industry_useful_demand_for_aggregated_other ..._energetic If set: keep original input value
- ..._non_energetic If set: keep original input value
industry_aggregated_other_industry_coal_share ..._energetic If set: keep original input value
- ..._non_energetic - (start value automatically calculated)
- industry_aggregated_other_industry_cokes_share_energetic - (start value automatically calculated)
- industry_aggregated_other_industry_cokes_share_non_energetic - (start value automatically calculated)
industry_aggregated_other_industry_crude_oil_share ..._energetic If set: keep original input value
- ..._non_energetic - (start value automatically calculated)
industry_aggregated_other_industry_hydrogen_share ..._energetic If set: keep original input value
- ..._non_energetic Set value: 0
industry_aggregated_other_industry_network_gas_share ..._energetic If set: keep original input value
- ..._non_energetic - (start value automatically calculated)
industry_aggregated_other_industry_wood_pellets_share ..._energetic If set: keep original input value
- ..._non_energetic - (start value automatically calculated)

Why?

See the related etmodel issue for the need behind this change.

How?

By leveraging etengine's migration_scenarios functionality, walking through all scenarios and setting/removing new values.

Closes quintel/etmodel#4116.