Skip to content

Commit

Permalink
fix method in PSY
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed May 13, 2024
1 parent 3e83d91 commit b4030ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/operation/emulation_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function validate_time_series(model::EmulationModel{<:DefaultEmulationProblem})
end

settings = get_settings(model)
available_resolutions = PSY.list_time_series_resolutions(sys)
available_resolutions = PSY.get_time_series_resolutions(sys)

if get_resolution(settings) == UNSET_RESOLUTION && length(available_resolutions) != 1
throw(
Expand Down
2 changes: 1 addition & 1 deletion test/test_utils/mock_operation_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function PSI.DecisionModel(
kwargs...,
) where {T <: PM.AbstractPowerModel}
settings = PSI.Settings(sys; kwargs...)
available_resolutions = PSY.list_time_series_resolutions(sys)
available_resolutions = PSY.get_time_series_resolutions(sys)
if length(available_resolutions) == 1
PSI.set_resolution!(settings, first(available_resolutions))
else
Expand Down

0 comments on commit b4030ef

Please sign in to comment.