Skip to content

Commit

Permalink
close #205
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian-Stefan-Ernst committed Oct 29, 2024
1 parent d42f4e6 commit 23d0ace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/frontend/specification/EnsembleParameterTable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ EnsembleParameterTable(::Nothing; params::Union{Nothing, Vector{Symbol}} = nothi
isnothing(params) ? Symbol[] : copy(params),
)

# convert pairs to dict
EnsembleParameterTable(ps::Pair{K, V}...; params = nothing) where {K, V} =
EnsembleParameterTable(Dict(ps...); params = params)

# dictionary of SEM specifications
function EnsembleParameterTable(
spec_ensemble::AbstractDict{K, V};
Expand Down
3 changes: 2 additions & 1 deletion test/examples/multigroup/multigroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ specification_g2 = RAMMatrices(;
)

partable = EnsembleParameterTable(
Dict(:Pasteur => specification_g1, :Grant_White => specification_g2),
:Pasteur => specification_g1,
:Grant_White => specification_g2
)

specification_miss_g1 = nothing
Expand Down

0 comments on commit 23d0ace

Please sign in to comment.