Skip to content

Commit 0a1b8a1

Browse files
committed
[ModelicaSystem] consider dict input for set*() functions
1 parent e3121f7 commit 0a1b8a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,8 @@ def prepare_str(str_in: str) -> dict[str, str]:
12411241
if not isinstance(item, str):
12421242
raise ModelicaSystemError(f"Invalid input data type for set*() function: {type(item)}!")
12431243
input_data = input_data | prepare_str(item)
1244+
elif isinstance(input_arg, dict):
1245+
input_data = input_data | input_arg
12441246
else:
12451247
raise ModelicaSystemError(f"Invalid input data type for set*() function: {type(input_arg)}!")
12461248

0 commit comments

Comments
 (0)