Skip to content
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

Closed
wants to merge 39 commits into from
Closed

Add PSY base methods #6

wants to merge 39 commits into from

Conversation

rodrigomha
Copy link
Contributor

@rodrigomha rodrigomha commented Apr 4, 2024

TODO list:

  • Remove Components (Rodrigo)
  • Time Series (Prady)
  • Serialization/Deserialization (Sourabh)

Copy link
Member

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}
Copy link
Member

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.

@rodrigomha rodrigomha marked this pull request as ready for review May 29, 2024 21:53
@rodrigomha rodrigomha requested a review from jd-lara May 29, 2024 21:53
@rodrigomha rodrigomha changed the title [DRAFT] Add PSY base methods Add PSY base methods May 29, 2024
Comment on lines +37 to +38
1, 2, 3, # first investment period
4, 5, 6 # second investment period

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
1, 2, 3, # first investment period
4, 5, 6 # second investment period
1,
2,
3, # first investment period
4,
5,
6, # second investment period

Comment on lines +40 to +43
t_th_ext["investment_operational_periods_map"] = Dict(
2030 => [1, 2, 3],
2040 => [4, 5, 6],
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
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]


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

PSIP.add_technology!(p, t_th)
PSIP.add_technology!(p, t_re)


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@jd-lara jd-lara closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants