Skip to content

Commit d3554fe

Browse files
committed
fix set_timestep_data call
1 parent 6a11122 commit d3554fe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ansys/systemcoupling/core/charts/plotter.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,6 @@ def __init__(
352352

353353
self._is_transient: bool | None = None
354354

355-
# Will remain empty if not transient:
356-
self._times: list[float] = [] # Time value at each time step
357-
self._time_indexes: list[int] = [] # Iteration to take value at time i from
358-
359355
self._init_figures()
360356

361357
def _init_figures(self):
@@ -385,7 +381,8 @@ def set_timestep_data(self, timestep_data: TimestepData):
385381
if timestep_data.timestep and not self._is_transient:
386382
raise RuntimeError("Attempt to set timestep data on non-transient case")
387383

388-
self._time_indexes, self._times = _process_timestep_data(timestep_data)
384+
for fig in self._figures:
385+
fig.set_timestep_data(timestep_data)
389386

390387
def update_line_series(self, series_data: SeriesData):
391388
"""Update the line series determined by the provided ``series_data`` with the

0 commit comments

Comments
 (0)