Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of rspecs to balanced mekko's #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaskranenburgQ
Copy link
Contributor

@kaskranenburgQ kaskranenburgQ commented Sep 25, 2024

Goes together with:
ETSource PR

In the model we have 6 mekko figures that should be balanced since they show the balance between supply and demand in a specific sector.
These are:
mekko_of_co2_demand_supply.yml (Demand and supply of Captured CO2 (CCUS))
agriculture_local_heat_mekko.yml (Supply and demand of heat from local CHP'S)
industrial_heat_mekko.yml (Industrial steam network supply and demand)
mekko_of_hydrogen_network.yml (Supply and demand of the central hydrogen network)
mekko_of_ammonia_demand_supply.yml (Supply and demand of ammonia)
mekko_of_kerosene_demand_supply.yml (Supply and demand of kerosene)

This PR adds an rspec that checks whether these figures are balanced.
As of now the hydrogen mekko is not balanced, so this figure is skipped.
In addition it adds an rspec that reads the queries that are mentioned in the files of the figures, checks whether they are on the demand or supply side of the graph, and puts the demand and supply queries of each graph in a seperate querie.
The queries that are created by this are then used in the rspec.
The file for the rspec is automatically generated by this script as well.
When there are any changes to the mekko's we simply run this spec and we have an updated test as well.

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.

2 participants