-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add PSY base methods #6
Conversation
scripts/portfolio_test.jl
Outdated
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.
Instead of making scripts. Write these as tests right away. We don't want to accumulate scripts in the main branch of the repo.
src/supply.jl
Outdated
@@ -5,8 +5,8 @@ struct SupplyTechnology{T <: PSY.Generator} <: Technology | |||
fuel::PSY.ThermalFuels | |||
prime_mover::PSY.PrimeMovers | |||
capacity_factor::Float64 | |||
capital_cost::IS.FunctionData | |||
operational_cost::PSY.OperationalCost | |||
capital_cost::Union{Nothing, IS.FunctionData} |
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.
we have appropriate null values for this now. Requires an IS merge.
1, 2, 3, # first investment period | ||
4, 5, 6 # second investment period |
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.
[JuliaFormatter] reported by reviewdog 🐶
1, 2, 3, # first investment period | |
4, 5, 6 # second investment period | |
1, | |
2, | |
3, # first investment period | |
4, | |
5, | |
6, # second investment period |
t_th_ext["investment_operational_periods_map"] = Dict( | ||
2030 => [1, 2, 3], | ||
2040 => [4, 5, 6], | ||
) |
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.
[JuliaFormatter] reported by reviewdog 🐶
t_th_ext["investment_operational_periods_map"] = Dict( | |
2030 => [1, 2, 3], | |
2040 => [4, 5, 6], | |
) | |
t_th_ext["investment_operational_periods_map"] = Dict(2030 => [1, 2, 3], 2040 => [4, 5, 6]) |
t_re_ext["capital_cost"] = 100.0 | ||
t_re_ext["variable_capacity_factor"] = [0.8, 0.6, 0.3] | ||
|
||
|
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.
[JuliaFormatter] reported by reviewdog 🐶
PSIP.add_technology!(p, t_th) | ||
PSIP.add_technology!(p, t_re) | ||
|
||
|
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.
[JuliaFormatter] reported by reviewdog 🐶
TODO list: