Skip to content
Snippets Groups Projects
Commit fad1d0f5 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

support new complex suffixes and released version v0.1.4

parent 6204899a
No related branches found
Tags v0.1.4
No related merge requests found
......@@ -79,16 +79,16 @@ def read_timeseries_simulink(filename, timeseries_names=None):
#print("Found complex variable: " + tmp)
elif not imaginary_string in column:
real_result_columns.append(column)
#print("Found real variable: " + column)
for column in real_result_columns:
#print("Found real variable: " + column)
for column in real_result_columns:
timeseries_list[column] = TimeSeries(column, timestamps, pd_df[column])
for column in cmpl_result_columns:
timeseries_list[column] = TimeSeries(column, timestamps,
np.vectorize(complex)(pd_df[column + real_string],
for column in cmpl_result_columns:
timeseries_list[column] = TimeSeries(column, timestamps,
np.vectorize(complex)(pd_df[column + real_string],
pd_df[column + imaginary_string]))
else:
# Read in specified time series
print('cannot read specified columns yet')
......@@ -131,16 +131,22 @@ def read_timeseries_dpsim(filename, timeseries_names=None):
#print("Found complex variable: " + tmp)
elif not imaginary_string in column:
real_result_columns.append(column)
#print("Found real variable: " + column)
for column in real_result_columns:
#print("Found real variable: " + column)
for column in real_result_columns:
timeseries_list[column] = TimeSeries(column, timestamps, pd_df[column])
for column in cmpl_result_columns:
timeseries_list[column] = TimeSeries(column, timestamps,
np.vectorize(complex)(pd_df[column + real_string],
pd_df[column + imaginary_string]))
for column in cmpl_result_columns:
try:
timeseries_list[column] = TimeSeries(column, timestamps,
np.vectorize(complex)(
pd_df[column + real_string],
pd_df[column + imaginary_string]
)
)
except:
pass
else:
# Read in specified time series
print('cannot read specified columns yet')
......
......@@ -14,7 +14,7 @@ def read(fname):
setup(
name = "acs-dataprocessing",
version = "0.1.3",
version = "0.1.4",
author = "Markus Mirz, Jan Dinkelbach, Steffen Vogel",
author_email = "acs-software@eonerc.rwth-aachen.de",
description = "Several tools for processing simulation results",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment