From cee284aef2cb81837988243bea361acacf4dfe8f Mon Sep 17 00:00:00 2001 From: cosim <mmirz@eonerc.rwth-aachen.de> Date: Mon, 20 Nov 2017 18:45:52 +0100 Subject: [PATCH] bugfix for Modelica read-in --- dataprocessing/readtools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataprocessing/readtools.py b/dataprocessing/readtools.py index 51376b9..9e0d6c2 100644 --- a/dataprocessing/readtools.py +++ b/dataprocessing/readtools.py @@ -14,8 +14,8 @@ def read_timeseries_Modelica(filename, timeseries_names=None): if not isinstance(timeseries_names, list): timeseries = TimeSeries(timeseries_names, sim(timeseries_names).times(), sim(timeseries_names).values()) else: + timeseries = [] for name in timeseries_names: - timeseries = [] timeseries.append(TimeSeries(name, sim(name).times(), sim(name).values())) return timeseries -- GitLab