Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VILLASdataprocessing
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
VILLASframework
VILLASdataprocessing
Commits
fad1d0f5
Commit
fad1d0f5
authored
6 years ago
by
Steffen Vogel
Browse files
Options
Downloads
Patches
Plain Diff
support new complex suffixes and released version v0.1.4
parent
6204899a
No related branches found
Branches containing commit
Tags
v0.1.4
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dataprocessing/readtools.py
+21
-15
21 additions, 15 deletions
dataprocessing/readtools.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
22 additions
and
16 deletions
dataprocessing/readtools.py
+
21
−
15
View file @
fad1d0f5
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
fad1d0f5
...
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment