Skip to content

Commit d543514

Browse files
committed
[ModelicaSystem] add ',' for last element of list definitions
1 parent 428cc30 commit d543514

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ def _createCSVData(self, csvfile: Optional[OMCPath] = None) -> OMCPath:
14111411
interpolated_inputs[signal_name] = np.interp(
14121412
all_times,
14131413
signal[:, 0], # times
1414-
signal[:, 1] # values
1414+
signal[:, 1], # values
14151415
)
14161416

14171417
# Write CSV file
@@ -1423,7 +1423,7 @@ def _createCSVData(self, csvfile: Optional[OMCPath] = None) -> OMCPath:
14231423
row = [
14241424
t, # time
14251425
*(interpolated_inputs[name][i] for name in input_names), # input values
1426-
0 # trailing 'end' column
1426+
0, # trailing 'end' column
14271427
]
14281428
csv_rows.append(row)
14291429

0 commit comments

Comments
 (0)