Skip to content

Commit

Permalink
hotfix: ospCaseBuilder did not regard the new watchCosim structure
Browse files Browse the repository at this point in the history
  • Loading branch information
frl000 committed Nov 30, 2023
1 parent e8015fa commit 4ef6315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ospx/ospSimulationCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ def write_watch_dict(self):
# @TODO: Time, StepCount, conn0, conn1, etc from modelDescription.xml ModelVariables
# should match connectors in caseDict for respective model. Improvement needed.
# FRALUM, 2021-xx-xx
columns = [0, 1] + [x + 2 for x in range(no_of_connectors)] # f*** StepCount

watch_dict["datasources"].update({component_name: {"columns": columns}})
time_column = 0
data_columns = [1] + [x + 2 for x in range(no_of_connectors)] # f*** StepCount
watch_dict["datasources"].update({component_name: {"dataColumns": data_columns, "timeColumn": time_column}})

DictWriter.write(watch_dict, watch_dict_file, mode="w")

Expand Down

0 comments on commit 4ef6315

Please sign in to comment.