Skip to content

Commit

Permalink
use read_results_with_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Feb 17, 2024
1 parent 1b02975 commit b10040a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/get_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,23 +320,23 @@ function get_generation_data(
aux_variable_keys =
get_generation_aux_variable_keys(results; aux_variable_keys = aux_variable_keys)

variables = PSI.read_variables_with_keys(
variables = PSI.read_results_with_keys(
results,
injection_keys;
start_time = initial_time,
len = len,
)
filter_results!(variables, filter_func, results)

parameters = PSI.read_parameters_with_keys(
parameters = PSI.read_results_with_keys(
results,
parameter_keys;
start_time = initial_time,
len = len,
)
filter_results!(parameters, filter_func, results)

aux_variables = PSI.read_aux_variables_with_keys(
aux_variables = PSI.read_results_with_keys(
results,
aux_variable_keys;
start_time = initial_time,
Expand Down Expand Up @@ -370,23 +370,23 @@ function get_load_data(
variable_keys = get_load_variable_keys(results; variable_keys = variable_keys)
parameter_keys = get_load_parameter_keys(results; parameter_keys = parameter_keys)

variables = PSI.read_variables_with_keys(
variables = PSI.read_results_with_keys(
results,
variable_keys;
start_time = initial_time,
len = len,
)
filter_results!(variables, filter_func, results)

parameters = PSI.read_parameters_with_keys(
parameters = PSI.read_results_with_keys(
results,
parameter_keys;
start_time = initial_time,
len = len,
)
filter_results!(parameters, filter_func, results)

aux_variables = PSI.read_aux_variables_with_keys(
aux_variables = PSI.read_results_with_keys(
results,
aux_variable_keys;
start_time = initial_time,
Expand Down Expand Up @@ -481,7 +481,7 @@ function get_service_data(

variable_keys = get_service_variable_keys(results; variable_keys = variable_keys)

variables = PSI.read_variables_with_keys(
variables = PSI.read_results_with_keys(
results,
variable_keys;
start_time = initial_time,
Expand Down

0 comments on commit b10040a

Please sign in to comment.