StructuralEquationModels.jl icon indicating copy to clipboard operation
StructuralEquationModels.jl copied to clipboard

New constructor for EnsembleParameterTable

Open Maximilian-Stefan-Ernst opened this issue 1 year ago • 0 comments

          Maybe we want to have something like this:

EnsembleParameterTable(ps::Pair{K, V}...; params = nothing) where {K, V} = EnsembleParameterTable(Dict(ps...); params = params)

So users can just write

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

instead of having to construct the Dict themselves every time:

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

Originally posted by @Maximilian-Stefan-Ernst in https://github.com/StructuralEquationModels/StructuralEquationModels.jl/pull/203#discussion_r1602907814

Maximilian-Stefan-Ernst avatar May 17 '24 06:05 Maximilian-Stefan-Ernst