Skip to content

Commit

Permalink
fixup EnsParTable key fixed to Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst authored May 9, 2024
1 parent 2acfedc commit 9330cc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frontend/specification/EnsembleParameterTable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end

# constuct an empty table
EnsembleParameterTable(::Nothing; params::Union{Nothing, Vector{Symbol}} = nothing) =
EnsembleParameterTable{Symbol}(
EnsembleParameterTable(
Dict{Symbol, ParameterTable}(),
isnothing(params) ? Symbol[] : copy(params),
)
Expand All @@ -32,11 +32,11 @@ function EnsembleParameterTable(
end

# convert each model specification to ParameterTable
partables = Dict{K, ParameterTable}(
group => convert(ParameterTable, spec; params) for
partables = Dict{Symbol, ParameterTable}(
Symbol(group) => convert(ParameterTable, spec; params) for
(group, spec) in pairs(spec_ensemble)
)
return EnsembleParameterTable{K}(partables, params)
return EnsembleParameterTable(partables, params)
end

############################################################################################
Expand Down

0 comments on commit 9330cc4

Please sign in to comment.