Skip to content

Commit

Permalink
fix read results interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 25, 2023
1 parent 3ebd3d3 commit 8cb2bae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/simulation/decision_model_simulation_results.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,15 @@ function _read_results(
res::SimulationProblemResults{DecisionModelSimulationResults},
result_keys,
timestamps::Vector{Dates.DateTime},
store::Union{Nothing, <:SimulationStore},
store::Nothing,
)
isempty(result_keys) &&
return Dict{OptimizationContainerKey, ResultsByTime{Matrix{Float64}}}()

if res.store !== nothing
# In this case we have an InMemorySimulationStore.
store = res.store
end
return _get_store_value(T, res, result_keys, timestamps, store)
end

Expand Down

0 comments on commit 8cb2bae

Please sign in to comment.