Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/core/connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ function _check_attributes(obj::AbstractCompositeComponentDef,

param_def = parameter(comp_def, param_name)

# handle string case
t1 = eltype(mod_param.values)
t2 = eltype(param_def.datatype)

# handle String case
if t1 == Char; t1 = String; end
if t2 == Char; t2 = String; end

if !(t1 <: Union{Missing, t2})
error("Mismatched datatype of parameter connection: Component: $(nameof(comp_def)) ",
"Parameter: $param_name ($t2) to Model Parameter ($t1). Mimi requires that ",
Expand Down