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