-
Notifications
You must be signed in to change notification settings - Fork 2
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
Jd/ntp bugfix #14
Jd/ntp bugfix #14
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/hydro_generation.jl
Outdated
@@ -571,9 +580,9 @@ function PSI.add_constraints!( | |||
resolution = PSI.get_resolution(container) | |||
fraction_of_hour = Dates.value(Dates.Minute(resolution)) / PSI.MINUTES_IN_HOUR | |||
names = [PSY.get_name(x) for x in devices] | |||
initial_conditions = PSI.get_initial_condition(container, InitialEnergyLevelDown(), V) | |||
initial_conditions = PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) |
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 🐶
initial_conditions = PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) | |
initial_conditions = | |
PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) |
src/hydro_generation.jl
Outdated
@@ -764,23 +775,25 @@ | |||
return | |||
end | |||
|
|||
|
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 🐶
src/hydro_generation.jl
Outdated
var_val = | ||
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | ||
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) |
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 🐶
var_val = | |
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | |
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) | |
var_val = PSI.get_variable_value( | |
store, | |
HydroEnergyVariableUp(), | |
PSI.get_component_type(ic), | |
) |
src/hydrogeneration_constructor.jl
Outdated
PSI.add_variables!(container, HydroEnergyVariableUp, devices, HydroDispatchPumpedStorage()) | ||
PSI.add_variables!(container, HydroEnergyVariableDown, devices, HydroDispatchPumpedStorage()) |
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 🐶
PSI.add_variables!(container, HydroEnergyVariableUp, devices, HydroDispatchPumpedStorage()) | |
PSI.add_variables!(container, HydroEnergyVariableDown, devices, HydroDispatchPumpedStorage()) | |
PSI.add_variables!( | |
container, | |
HydroEnergyVariableUp, | |
devices, | |
HydroDispatchPumpedStorage(), | |
) | |
PSI.add_variables!( | |
container, | |
HydroEnergyVariableDown, | |
devices, | |
HydroDispatchPumpedStorage(), | |
) |
src/hydro_generation.jl
Outdated
@@ -571,9 +580,9 @@ function PSI.add_constraints!( | |||
resolution = PSI.get_resolution(container) | |||
fraction_of_hour = Dates.value(Dates.Minute(resolution)) / PSI.MINUTES_IN_HOUR | |||
names = [PSY.get_name(x) for x in devices] | |||
initial_conditions = PSI.get_initial_condition(container, InitialEnergyLevelDown(), V) | |||
initial_conditions = PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) |
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 🐶
initial_conditions = PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) | |
initial_conditions = | |
PSI.get_initial_condition(container, InitialHydroEnergyLevelDown(), V) |
src/hydro_generation.jl
Outdated
var_val = | ||
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | ||
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) |
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 🐶
var_val = | |
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | |
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) | |
var_val = PSI.get_variable_value( | |
store, | |
HydroEnergyVariableUp(), | |
PSI.get_component_type(ic), | |
) |
src/hydro_generation.jl
Outdated
var_val = | ||
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | ||
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) |
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 🐶
var_val = | |
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | |
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) | |
var_val = PSI.get_variable_value( | |
store, | |
HydroEnergyVariableUp(), | |
PSI.get_component_type(ic), | |
) |
src/hydro_generation.jl
Outdated
var_val = | ||
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | ||
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) |
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 🐶
var_val = | |
PSI.get_variable_value(store, EnergyVariableUp(), PSI.get_component_type(ic)) | |
PSI.get_variable_value(store, HydroEnergyVariableUp(), PSI.get_component_type(ic)) | |
var_val = PSI.get_variable_value( | |
store, | |
HydroEnergyVariableUp(), | |
PSI.get_component_type(ic), | |
) |
Fixes to avoid issues with the NTP models. Some of these cases were not covered by the tests.