We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba56397 commit 7698707Copy full SHA for 7698707
1 file changed
OMPython/ModelicaSystem.py
@@ -1209,16 +1209,6 @@ def _prepare_input_data(
1209
Convert raw input to a structured dictionary {'key1': 'value1', 'key2': 'value2'}.
1210
"""
1211
1212
- def prepare_str(str_in: str) -> dict[str, str]:
1213
- str_in = str_in.replace(" ", "")
1214
- key_val_list: list[str] = str_in.split("=")
1215
- if len(key_val_list) != 2:
1216
- raise ModelicaSystemError(f"Invalid 'key=value' pair: {str_in}")
1217
-
1218
- input_data_from_str: dict[str, str] = {key_val_list[0]: key_val_list[1]}
1219
1220
- return input_data_from_str
1221
1222
input_data: dict[str, str] = {}
1223
1224
if len(input_kwargs):
0 commit comments