Skip to content

Commit

Permalink
Update costs data-export for heat (#1379)
Browse files Browse the repository at this point in the history
* Update storage costs in costs export to account for heat temperature levels

* Update spec description
  • Loading branch information
mabijkerk authored Dec 14, 2023
1 parent c251f6d commit eed360a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/serializers/costs_parameters_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class CostsParametersSerializer
],
costs_storage_and_conversion_storage: %w[
costs_hydrogen_storage
heat_infrastructure_storage_annualised_costs
heat_infrastructure_ht_storage_annualised_costs
heat_infrastructure_mt_storage_annualised_costs
heat_infrastructure_lt_storage_annualised_costs
],
costs_infrastructure_electricity: %w[
total_costs_of_electricity_network_calculation
Expand Down
4 changes: 2 additions & 2 deletions spec/serializers/costs_parameters_serializer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
let(:scenario) { FactoryBot.create(:scenario) }

it 'has 40 rows' do
# 12 queries, 6 totals, 24 subtotals = 42 rows minimum (when no nodes in groups)
expect(subject.length).to eq(42)
# 14 queries, 6 totals, 24 subtotals = 44 rows minimum (when no nodes in groups)
expect(subject.length).to eq(44)
end

it 'has a row for each node' do
Expand Down

0 comments on commit eed360a

Please sign in to comment.