Skip to content

Commit f06ec23

Browse files
Renaming query with duplicate name, and changing query name in scenario reports
1 parent ad5e286 commit f06ec23

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

app/views/output_elements/tables/_power_shortage.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
%th.left= t "output_elements.tables.power_shortage.shortage"
1717
%td{:data => {:gquery => "dashboard_power_shortage_volume"}}
1818
%td{:data => {:gquery => "dashboard_power_shortage_peak"}}
19-
%td{:data => {:gquery => "dashboard_power_shortage_hours"}}
19+
%td{:data => {:gquery => "dashboard_power_shortage_amount_of_hours"}}
2020
%tr
2121
%th.left= t "output_elements.tables.power_shortage.demand"
2222
%td{:data => {:gquery => "dashboard_total_electricity_demand_volume"}}

config/reports/main.en.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@
142142
</li>
143143
{% endif %}
144144

145-
{% if future.dashboard_blackout_hours > 0 %}
145+
{% if future.dashboard_power_shortage_hours > 0 %}
146146
<li class="target-missed">
147-
Your scenario has {{ future.dashboard_blackout_hours | without_unit }}
147+
Your scenario has {{ future.dashboard_power_shortage_hours | without_unit }}
148148
blackout hours. Build more electricity backup capacity or reduce demand.
149149
<a href="#reliability" class="learn-more">Learn more &raquo;</a>
150150
</li>
@@ -604,9 +604,9 @@
604604
prevent a shortage of power.
605605
</p>
606606

607-
{% if future.dashboard_blackout_hours > 1 %}
607+
{% if future.dashboard_power_shortage_hours > 1 %}
608608
<p>
609-
Your scenario has {{ future.dashboard_blackout_hours | without_unit }} blackout hours.
609+
Your scenario has {{ future.dashboard_power_shortage_hours | without_unit }} blackout hours.
610610
Try building more reliable back-up capacity in the electricity production section.
611611
Note that solar and wind power are intermittent and cannot add reliable electricity at all
612612
times.

config/reports/main.nl.liquid

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
<li>
6767
<strong>Betrouwbaarheid</strong><br />
68-
Het scenario heeft <strong>{{ future.dashboard_blackout_hours | without_unit }}</strong> uren met stroomuitval. Daarnaast komt <strong>{{future.dashboard_energy_import_netto | times: 100 | round: 0 }}%</strong> van de energie van buiten het eigen gebied.
68+
Het scenario heeft <strong>{{ future.dashboard_power_shortage_hours | without_unit }}</strong> uren met stroomuitval. Daarnaast komt <strong>{{future.dashboard_energy_import_netto | times: 100 | round: 0 }}%</strong> van de energie van buiten het eigen gebied.
6969
</li>
7070

7171
<li>
@@ -225,7 +225,7 @@
225225
<h2 class="banner">A. Elektriciteit</h2>
226226
<h3> A1. Vraag en aanbod (jaarlijks)</h3>
227227
<p>
228-
Ook de elektriciteit moet natuurlijk ergens vandaan komen. De meeste elektriciteit in jouw scenario wordt geproduceerd met {{ future.biggest_electricity_producer_name | i18n: 'output_element_series.labels' }} ({{ future.biggest_electricity_producer_value | autoscale: 'MJ'}}). Het rode lijntje is het jaarlijkse volume aan elektriciteit dat er in het scenario nodig is. Het kan voorkomen dat er toch veel import (donkerblauw) nodig is terwijl er jaarlijks (meer dan) genoeg elektriciteit wordt opgewekt. Het ETM berekent vraag en aanbod van elektriciteit op uurbasis. Dit scenario heeft qua volume <strong>{{future.imported_electricity_percentage| times: 100 | round: 1 }}%</strong> import van elektriciteit. Daarnaast valt de stroom in dit scenario <strong>{{ future.dashboard_blackout_hours | without_unit }}</strong> uren uit en is {{ settings.area_name }} voor <strong>{{future.dashboard_security_of_supply }}</strong> uren afhankelijk van import. Flexibiliteitsopties zoals opslag in batterijen, waterstof of slim omgaan met de vraag kunnen helpen om de overschotten en de import omlaag te brengen.
228+
Ook de elektriciteit moet natuurlijk ergens vandaan komen. De meeste elektriciteit in jouw scenario wordt geproduceerd met {{ future.biggest_electricity_producer_name | i18n: 'output_element_series.labels' }} ({{ future.biggest_electricity_producer_value | autoscale: 'MJ'}}). Het rode lijntje is het jaarlijkse volume aan elektriciteit dat er in het scenario nodig is. Het kan voorkomen dat er toch veel import (donkerblauw) nodig is terwijl er jaarlijks (meer dan) genoeg elektriciteit wordt opgewekt. Het ETM berekent vraag en aanbod van elektriciteit op uurbasis. Dit scenario heeft qua volume <strong>{{future.imported_electricity_percentage| times: 100 | round: 1 }}%</strong> import van elektriciteit. Daarnaast valt de stroom in dit scenario <strong>{{ future.dashboard_power_shortage_hours | without_unit }}</strong> uren uit en is {{ settings.area_name }} voor <strong>{{future.dashboard_security_of_supply }}</strong> uren afhankelijk van import. Flexibiliteitsopties zoals opslag in batterijen, waterstof of slim omgaan met de vraag kunnen helpen om de overschotten en de import omlaag te brengen.
229229
</p>
230230
{% chart source_of_electricity_production %}
231231
Elektriciteitsvraag- en aanbod voor {{ settings.start_year }} (links) en {{ settings.end_year }} (rechts).
@@ -341,9 +341,9 @@
341341
tekorten op te vangen.
342342
</p>
343343

344-
{% if future.dashboard_blackout_hours > 1 %}
344+
{% if future.dashboard_power_shortage_hours > 1 %}
345345
<p>
346-
Je scenario heeft {{ future.dashboard_blackout_hours | without_unit }} blackout-uren.
346+
Je scenario heeft {{ future.dashboard_power_shortage_hours | without_unit }} blackout-uren.
347347
Installeer meer back-up capaciteit in de aanbod-sectie van het ETM of verlaag de vraag naar elektriciteit.
348348
Stroom uit zon en wind hebben beperkte betrouwbaarheid omdat het niet altijd waait en de zon niet continu
349349
schijnt.
@@ -683,9 +683,9 @@
683683
</li>
684684
{% endif %}
685685

686-
{% if future.dashboard_blackout_hours > 0 %}
686+
{% if future.dashboard_power_shortage_hours > 0 %}
687687
<li class="target-missed">
688-
Je scenario heeft {{ future.dashboard_blackout_hours | without_unit }}
688+
Je scenario heeft {{ future.dashboard_power_shortage_hours | without_unit }}
689689
blackout uren. Reduceer de vraag naar elektriciteit of instaleer meer
690690
backup-vermogen.
691691
</li>
@@ -815,9 +815,9 @@
815815

816816
<ul class="summary-extras">
817817

818-
{% if future.dashboard_blackout_hours > 0 %}
818+
{% if future.dashboard_power_shortage_hours > 0 %}
819819
<li class="target-missed">
820-
Je scenario heeft {{ future.dashboard_blackout_hours | without_unit }}
820+
Je scenario heeft {{ future.dashboard_power_shortage_hours | without_unit }}
821821
blackout uren. Reduceer de vraag naar elektriciteit of installeer meer
822822
backup-vermogen.
823823
<a href="#a2-elektriciteitsmarkt-en-flexibiliteit-uurbasis" class="learn-more">Lees verder &raquo;</a>

config/reports/regional.en.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@
142142
</li>
143143
{% endif %}
144144

145-
{% if future.dashboard_blackout_hours > 0 %}
145+
{% if future.dashboard_power_shortage_hours > 0 %}
146146
<li class="target-missed">
147-
Your scenario has {{ future.dashboard_blackout_hours | without_unit }}
147+
Your scenario has {{ future.dashboard_power_shortage_hours | without_unit }}
148148
blackout hours. Build more electricity backup capacity or reduce demand.
149149
<a href="#reliability" class="learn-more">Learn more &raquo;</a>
150150
</li>
@@ -532,9 +532,9 @@
532532
prevent a shortage of power.
533533
</p>
534534

535-
{% if future.dashboard_blackout_hours > 1 %}
535+
{% if future.dashboard_power_shortage_hours > 1 %}
536536
<p>
537-
Your scenario has {{ future.dashboard_blackout_hours | without_unit }} blackout hours.
537+
Your scenario has {{ future.dashboard_power_shortage_hours | without_unit }} blackout hours.
538538
Try building more reliable back-up capacity in the electricity production section.
539539
Note that solar and wind power are intermittent and cannot add reliable electricity at all
540540
times.

config/reports/regional.nl.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<li>
6666
<strong>Betrouwbaarheid</strong><br />
67-
Het scenario heeft <strong>{{ future.dashboard_blackout_hours | without_unit }}</strong> uren met stroomuitval. Daarnaast komt <strong>{{future.dashboard_energy_import_netto | times: 100 | round: 0 }}%</strong> van de energie van buiten het eigen gebied.
67+
Het scenario heeft <strong>{{ future.dashboard_power_shortage_hours | without_unit }}</strong> uren met stroomuitval. Daarnaast komt <strong>{{future.dashboard_energy_import_netto | times: 100 | round: 0 }}%</strong> van de energie van buiten het eigen gebied.
6868
</li>
6969

7070
<li>
@@ -202,7 +202,7 @@
202202
<h2 class="banner">B. Elektriciteit</h2>
203203
<h3> B1. Vraag en aanbod (jaarlijks)</h3>
204204
<p>
205-
Ook de elektriciteit moet natuurlijk ergens vandaan komen. Het rode lijntje is het jaarlijkse volume aan elektriciteit dat er in het scenario nodig is. Het kan voorkomen dat er toch veel import (donkerblauw) nodig is terwijl er jaarlijks (meer dan) genoeg elektriciteit wordt opgewekt. Het ETM berekent vraag en aanbod van elektriciteit op uurbasis. Dit scenario heeft qua volume <strong>{{future.imported_electricity_percentage| times: 100 | round: 1 }}%</strong> import van elektriciteit. Daarnaast valt de stroom in dit scenario <strong>{{ future.dashboard_blackout_hours | without_unit }}</strong> uren uit en is {{ settings.area_name }} voor <strong>{{future.dashboard_security_of_supply }}</strong> uren afhankelijk van import van buiten het gebied. Flexibiliteitsopties zoals opslag in batterijen, waterstof of slim omgaan met de vraag kunnen helpen om overschotten beter te benutten en de import omlaag te brengen.
205+
Ook de elektriciteit moet natuurlijk ergens vandaan komen. Het rode lijntje is het jaarlijkse volume aan elektriciteit dat er in het scenario nodig is. Het kan voorkomen dat er toch veel import (donkerblauw) nodig is terwijl er jaarlijks (meer dan) genoeg elektriciteit wordt opgewekt. Het ETM berekent vraag en aanbod van elektriciteit op uurbasis. Dit scenario heeft qua volume <strong>{{future.imported_electricity_percentage| times: 100 | round: 1 }}%</strong> import van elektriciteit. Daarnaast valt de stroom in dit scenario <strong>{{ future.dashboard_power_shortage_hours | without_unit }}</strong> uren uit en is {{ settings.area_name }} voor <strong>{{future.dashboard_security_of_supply }}</strong> uren afhankelijk van import van buiten het gebied. Flexibiliteitsopties zoals opslag in batterijen, waterstof of slim omgaan met de vraag kunnen helpen om overschotten beter te benutten en de import omlaag te brengen.
206206
</p>
207207
{% chart source_of_electricity_production %}
208208
Elektriciteitsvraag- en aanbod voor {{ settings.start_year }} (links) en {{ settings.end_year }} (rechts).
@@ -376,9 +376,9 @@
376376
</li>
377377
{% endif %}
378378

379-
{% if future.dashboard_blackout_hours > 0 %}
379+
{% if future.dashboard_power_shortage_hours > 0 %}
380380
<li class="target-missed">
381-
Je scenario heeft {{ future.dashboard_blackout_hours | without_unit }}
381+
Je scenario heeft {{ future.dashboard_power_shortage_hours | without_unit }}
382382
blackout uren. Reduceer de vraag naar elektriciteit of instaleer meer
383383
backup-vermogen.
384384
</li>

config/reports/sample.en.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141
</p>
142142
</li>
143143

144-
{% if future.dashboard_blackout_hours > 0 %}
144+
{% if future.dashboard_power_shortage_hours > 0 %}
145145
<li class="target-missed">
146-
Your scenario has {{ future.dashboard_blackout_hours | without_unit }}
146+
Your scenario has {{ future.dashboard_power_shortage_hours | without_unit }}
147147
blackout hours. Build more electricity backup capacity or reduce demand.
148148
<a href="#reliability" class="learn-more">Learn more &raquo;</a>
149149
</li>

0 commit comments

Comments
 (0)