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
535c3b82
Commit
535c3b82
authored
7 years ago
by
Markus Mirz
Browse files
Options
Downloads
Patches
Plain Diff
added complex interpolate function but not tested yet
parent
9d8cafc2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dataprocessing/timeseries.py
+13
-0
13 additions, 0 deletions
dataprocessing/timeseries.py
with
13 additions
and
0 deletions
dataprocessing/timeseries.py
+
13
−
0
View file @
535c3b82
...
...
@@ -61,6 +61,19 @@ class TimeSeries:
-
self
.
values
.
imag
*
np
.
sin
(
2
*
np
.
pi
*
freq
*
self
.
time
))
return
ts_shift
def
interpolate_cmpl
(
self
,
name
,
timestep
):
"""
Not tested yet!
Interpolates complex timeseries with timestep
:param name:
:param timestep:
:return:
"""
interpl_time
=
np
.
arange
(
self
.
time
[
0
],
self
.
time
[
-
1
],
timestep
)
realValues
=
interp1d
(
interpl_time
,
self
.
values
.
real
)
imagValues
=
interp1d
(
interpl_time
,
self
.
values
.
imag
)
ts_return
=
TimeSeries
(
name
,
time
,
np
.
vectorize
(
complex
)(
realValues
,
imagValues
))
return
timeseries
@staticmethod
def
sep_dynphasor_shift_to_emt
(
name
,
real
,
imag
,
freq
):
"""
Shift dynamic phasor values to EMT by frequency freq.
...
...
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