Skip to content

Commit

Permalink
remove todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lecfab committed Aug 28, 2024
1 parent bfdeb61 commit ce9a3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/reportCosts.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ reportCosts <- function(gdx,output=NULL,regionSubsetList=NULL,t=c(seq(2005,2060,
out <- dimSums( # sum OMF over technologies (fixed operation & maintenance costs)
collapseNames(pm_data[,,"omf"])[,,e2e_allte] *
(dimSums((v_investcost[,,e2e_allte] * vm_cap[,,e2e_allte])[teall2rlf],dim=3.2,na.rm=T) # sum over rlf
)[,, e2e_allte],dim=3, na.rm=T) # windoffshore-todo: was e2e_allte, but need something like teall2rlf$e2e_allte to prevent problems when wind is absent
)[,, e2e_allte],dim=3, na.rm=T)

if(!is.null(vm_prodE) & !length(e2e_allte)==0) { # if either SE or FE is produced, then variable O&M is added
out <- out + dimSums(collapseNames(pm_data[,,"omv"])[,,sub_e2e$all_te] * dimSums(vm_prodE[sub_e2e],dim=c(3.1,3.2),na.rm=T)
Expand Down

0 comments on commit ce9a3e3

Please sign in to comment.