quintel / etsource

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

Adding test queries for Sankey download #3062

Open kaskranenburgQ opened 1 month ago

kaskranenburgQ commented 1 month ago

This PR adds test queries for the Sankey download. The logic behind the tests is that for each carrier in the Sankey download: Conversion Output + Primary Demand Output = Conversion Input + Final demand Input + Losses*

*The losses that are taken into account are conversion losses to the same carrier, i.e. electricity to electricity conversion losses.

With the rake task, the queries that are given for each group are extracted from the sankey_csv.yml and summed up in a dedicated query for each of the categories.

Since only one type of losses is taken into account, these queries are not taken into account in the tests.

Goes together with PR 178 from mechanical_turk