-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement missing function #1228
Conversation
) where T <: PSY.Device | ||
em_data = get_em_data(store) | ||
ix = get_last_recorded_row(em_data, key) | ||
@show model_name | ||
@show res = read_result(DenseAxisArray, store, model_name, key, ix) | ||
dataset = get_dataset(state, key) | ||
set_update_timestamp!(dataset, simulation_time) | ||
set_dataset_values!(state, key, 1, res) | ||
set_last_recorded_row!(dataset, 1) | ||
|
||
status_change_data = get_last_recorded_value(get_system_state_data(state, AvailableStatusChangeParameter(), T)) |
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 🐶
) where T <: PSY.Device | |
em_data = get_em_data(store) | |
ix = get_last_recorded_row(em_data, key) | |
@show model_name | |
@show res = read_result(DenseAxisArray, store, model_name, key, ix) | |
dataset = get_dataset(state, key) | |
set_update_timestamp!(dataset, simulation_time) | |
set_dataset_values!(state, key, 1, res) | |
set_last_recorded_row!(dataset, 1) | |
status_change_data = get_last_recorded_value(get_system_state_data(state, AvailableStatusChangeParameter(), T)) | |
) where {T <: PSY.Device} | |
status_change_data = get_last_recorded_value( | |
get_system_state_data(state, AvailableStatusChangeParameter(), T), | |
) |
column_names = axes(state_data.values)[1] | ||
status_data = get_last_recorded_value(get_dataset(sym_state, key)) | ||
|
||
|
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 🐶
for (ix, name) in enumerate(column_names) | ||
status = status_data[name] | ||
status_change = status_change_data[name] | ||
if status == 1.0 && status_change == 1.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 status == 1.0 && status_change == 1.0 | |
if status == 1.0 && status_change == 1.0 |
updated_status_value[ix] = 0.0 | ||
end | ||
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 🐶
updated_status_value[ix] = 0.0 | |
end | |
end | |
updated_status_value[ix] = 0.0 | |
end | |
end |
Performance Results
|
Adding the
update_system_state!
for theAvialableStatusParameter
which was previously erroring