Skip to content

Commit

Permalink
Rename 'annualsum' to 'total'
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 5, 2023
1 parent 99a428a commit f4f9b82
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function write_esr_revenue(path::AbstractString, inputs::Dict, setup::Dict, dfPo
for i in 1:nESR
esr_col = Symbol("ESR_$i")
price = dfESR[i, :ESR_Price]
annual_net_generation = dfPower[1:G,:AnnualSum] .* dfGen[!,esr_col]
revenue = annual_net_generation * price
derated_annual_net_generation = dfPower[1:G,:AnnualSum] .* dfGen[!,esr_col]
revenue = derated_annual_net_generation * price
dfESRRev[!, esr_col] = revenue

if !isempty(VRE_STOR)
Expand Down Expand Up @@ -58,7 +58,7 @@ function write_esr_revenue(path::AbstractString, inputs::Dict, setup::Dict, dfPo
end
end
end
dfESRRev.AnnualSum = sum(eachcol(dfESRRev[:, 6:nESR + 5]))
dfESRRev.Total = sum(eachcol(dfESRRev[:, 6:nESR + 5]))
CSV.write(joinpath(path, "ESR_Revenue.csv"), dfESRRev)
return dfESRRev
end
Expand Down

0 comments on commit f4f9b82

Please sign in to comment.