Skip to content

Commit ee28448

Browse files
authored
Merge branch 'master' into unit-checking
2 parents c6bd452 + e1ff9c5 commit ee28448

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/connections.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ function _check_attributes(obj::AbstractCompositeComponentDef,
6565

6666
param_def = parameter(comp_def, param_name)
6767

68+
# handle string case
6869
t1 = eltype(mod_param.values)
6970
t2 = eltype(param_def.datatype)
71+
72+
# handle String case
73+
if t1 == Char; t1 = String; end
74+
if t2 == Char; t2 = String; end
75+
7076
if !(t1 <: Union{Missing, t2})
7177
error("Mismatched datatype of parameter connection: Component: $(nameof(comp_def)) ",
7278
"Parameter: $param_name ($t2) to Model Parameter ($t1). Mimi requires that ",

0 commit comments

Comments
 (0)