-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply shift in investment variables #664
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing that. I have some small comments scrolling through the PR, but have no time to look deeper. Do you have some comparison plots of old vs. new for these variables? I think that would be helpful to see whether the smoothing works and the variables still have the same order of magnitude. Regarding the fixing, I have lots of trust into piamInterfaces::fixOnRef
:)
R/reportCapacity.R
Outdated
@@ -10,6 +10,8 @@ | |||
#' be created. | |||
#' @param t temporal resolution of the reporting, default: | |||
#' t=c(seq(2005,2060,5),seq(2070,2110,10),2130,2150) | |||
#' @param gdx_ref a GDX object as created by readGDX, or the path to a gdx of the reference run. | |||
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear | |
#' It is used to guarantee consistency before cm_startyear for Capacity variables where some time-averaging is used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has been adjusted
R/reportLCOE.R
Outdated
@@ -20,6 +20,8 @@ | |||
#' Can be either "average" (returns only average LCOE), | |||
#' "marginal" (returns only marginal LCOE), "both" (returns marginal and average LCOE) and | |||
#' and "marginal detail" (returns table to trace back how marginal LCOE are calculated). | |||
#' @param gdx_ref a GDX object as created by readGDX, or the path to a gdx of the reference run. | |||
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really prices here, or is that copied from reportPrices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has been adjusted
This PR is a follow-up to remindmodel/remind#1238
It applies a time shift to the following investment-related variables:
vm_deltaCap
,vm_costInvTeDir
andvm_costInvTeAdj
, affecting the variablesNew Cap|...
,Cumulative Cap|...
,Energy Investments|...
andTotal Energy costs|...
Validation:
piamInterfaces::fixOnRef
did not yield any new isues