quintel / etsource

Data source for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
12 stars 8 forks source link

Rewrite costs and efficiency sliders to dynamic queries #2950

Open mabijkerk opened 12 months ago

mabijkerk commented 12 months ago

Virtually all of the costs and efficiency sliders use hardcoded node names. This means they are at risk to become outdated quite quickly. See for example investment_costs_solar_solar_panels:

- query = 
    UPDATE(
      V(
        households_solar_pv_solar_radiation,
        buildings_solar_pv_solar_radiation,
        energy_power_solar_pv_solar_radiation,
        energy_hydrogen_solar_pv_solar_radiation,
        energy_battery_solar_pv_solar_radiation,
        energy_power_solar_pv_offshore
      ), initial_investment, USER_INPUT()
    )

We should update these query to make use of dynamic queries as much as possible, preferably using the same MECE groups as we use in the other queries. The input above could for example use electricity_producing_solar_converters to obtain the same selection of nodes.