We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f107a commit 222add4Copy full SHA for 222add4
src/frontend/specification/ParameterTable.jl
@@ -225,6 +225,8 @@ sort_vars(partable::ParameterTable) = sort_vars!(deepcopy(partable))
225
# add a row --------------------------------------------------------------------------------
226
227
function Base.push!(partable::ParameterTable, d::Union{AbstractDict{Symbol}, NamedTuple})
228
+ issetequal(keys(partable.columns), keys(d)) ||
229
+ throw(ArgumentError("The new row needs to have the same keys as the columns of the parameter table."))
230
for (key, val) in pairs(d)
231
push!(partable.columns[key], val)
232
end
0 commit comments