Skip to content

Commit cee2940

Browse files
louispt1noracato
authored andcommitted
Also derotate production_curve_for and demand_curve_for for the relevant gqueries
1 parent a184a4c commit cee2940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/qernel/fever_facade/summary.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def production_curve_for(producer_key, consumer_key)
8686

8787
return [0.0] * 8760 unless consumer && producer
8888

89-
consumer.production_curve_for(producer).to_a
89+
@curves.derotate(consumer.production_curve_for(producer).to_a)
9090
end
9191

9292
# Public: A curve describing the demand in MWh of a specific consumer
@@ -97,7 +97,7 @@ def demand_curve_for(producer_key, consumer_key)
9797

9898
return [0.0] * 8760 unless consumer && producer
9999

100-
consumer.demand_curve_for(producer).to_a
100+
@curves.derotate(consumer.demand_curve_for(producer).to_a)
101101
end
102102

103103
# Public: returns all demand for a consumer

0 commit comments

Comments
 (0)