Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ACS
P
Public
VILLASframework
Data Processing
Commits
535c3b82
Commit
535c3b82
authored
Jan 10, 2018
by
Markus Mirz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added complex interpolate function but not tested yet
parent
9d8cafc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dataprocessing/timeseries.py
dataprocessing/timeseries.py
+13
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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