Skip to content

Commit 9375518

Browse files
EnsParTable: fix key type to Symbol
Co-authored-by: Maximilian-Stefan-Ernst <34346372+Maximilian-Stefan-Ernst@users.noreply.github.com>
1 parent 700ccc1 commit 9375518

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/frontend/specification/EnsembleParameterTable.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
### Types
33
############################################################################################
44

5-
struct EnsembleParameterTable{K} <: AbstractParameterTable
6-
tables::Dict{K, ParameterTable}
5+
struct EnsembleParameterTable <: AbstractParameterTable
6+
tables::Dict{Symbol, ParameterTable}
77
params::Vector{Symbol}
88
end
99

@@ -13,7 +13,7 @@ end
1313

1414
# constuct an empty table
1515
EnsembleParameterTable(::Nothing; params::Union{Nothing, Vector{Symbol}} = nothing) =
16-
EnsembleParameterTable{Symbol}(
16+
EnsembleParameterTable(
1717
Dict{Symbol, ParameterTable}(),
1818
isnothing(params) ? Symbol[] : copy(params),
1919
)
@@ -32,11 +32,11 @@ function EnsembleParameterTable(
3232
end
3333

3434
# convert each model specification to ParameterTable
35-
partables = Dict{K, ParameterTable}(
36-
group => convert(ParameterTable, spec; params) for
35+
partables = Dict{Symbol, ParameterTable}(
36+
Symbol(group) => convert(ParameterTable, spec; params) for
3737
(group, spec) in pairs(spec_ensemble)
3838
)
39-
return EnsembleParameterTable{K}(partables, params)
39+
return EnsembleParameterTable(partables, params)
4040
end
4141

4242
############################################################################################

0 commit comments

Comments
 (0)