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

Mb/outages fix #1231

Closed
wants to merge 242 commits into from
Closed

Mb/outages fix #1231

wants to merge 242 commits into from

Conversation

m-bossart
Copy link

No description provided.

@m-bossart m-bossart closed this Jan 31, 2025
model_params::ModelStoreParams,
) where {T <: VariableType, U <: PSY.Component}
@error "UPDATE DECISION STATE $key"
event_ocurrence_data = get_decision_state_data(state, AvailableStatusChangeParameter(), U)
Copy link
Contributor

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
event_ocurrence_data = get_decision_state_data(state, AvailableStatusChangeParameter(), U)
event_ocurrence_data =
get_decision_state_data(state, AvailableStatusChangeParameter(), U)

Comment on lines +384 to +385
if event_status_data.values[name, outage_index] == 0.0
state_data.values[name, outage_index] = 0.0
Copy link
Contributor

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
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
Copy link
Contributor

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
else
else

Comment on lines +389 to +390
end
if outage_index == length(state_data.values[name, :])
Copy link
Contributor

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
end
if outage_index == length(state_data.values[name, :])
end
if outage_index == length(state_data.values[name, :])

Comment on lines +392 to +394
end
outage_index += 1
end
Copy link
Contributor

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
end
outage_index += 1
end
end
outage_index += 1
end

@jd-lara jd-lara deleted the mb/outages-fix branch February 1, 2025 22:04
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.

2 participants