Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASdataprocessing
Commits
535c3b82
Commit
535c3b82
authored
Jan 10, 2018
by
Markus Mirz
Browse files
added complex interpolate function but not tested yet
parent
9d8cafc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataprocessing/timeseries.py
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.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment