-
Notifications
You must be signed in to change notification settings - Fork 67
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
Mb/outages fix #1231
Mb/outages fix #1231
Conversation
first pass; checking conditions
…tion Implement missing function
new debug logging, fix logic
model_params::ModelStoreParams, | ||
) where {T <: VariableType, U <: PSY.Component} | ||
@error "UPDATE DECISION STATE $key" | ||
event_ocurrence_data = get_decision_state_data(state, AvailableStatusChangeParameter(), U) |
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 🐶
event_ocurrence_data = get_decision_state_data(state, AvailableStatusChangeParameter(), U) | |
event_ocurrence_data = | |
get_decision_state_data(state, AvailableStatusChangeParameter(), U) |
if event_status_data.values[name, outage_index] == 0.0 | ||
state_data.values[name, outage_index] = 0.0 |
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 🐶
if event_status_data.values[name, outage_index] == 0.0 | |
state_data.values[name, outage_index] = 0.0 | |
if event_status_data.values[name, outage_index] == 0.0 | |
state_data.values[name, outage_index] = 0.0 |
if event_status_data.values[name, outage_index] == 0.0 | ||
state_data.values[name, outage_index] = 0.0 | ||
@info "forcing $key to zero at index $outage_index because status was zero for $name" | ||
else |
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 🐶
else | |
else |
end | ||
if outage_index == length(state_data.values[name, :]) |
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 🐶
end | |
if outage_index == length(state_data.values[name, :]) | |
end | |
if outage_index == length(state_data.values[name, :]) |
end | ||
outage_index += 1 | ||
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 🐶
end | |
outage_index += 1 | |
end | |
end | |
outage_index += 1 | |
end |
No description provided.