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
6bcb2b4e
Commit
6bcb2b4e
authored
Aug 13, 2018
by
Markus Mirz
Browse files
removed static dyn phasor shift function
parent
9eb18412
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataprocessing/timeseries.py
View file @
6bcb2b4e
...
...
@@ -104,22 +104,7 @@ class TimeSeries:
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.
Assumes the same time steps for both timeseries.
:param name: name of returned time series
:param real: timeseries with real values
:param imag: timeseries with imaginary values
:param freq: shift frequency
:return: new timeseries with shifted time domain values
"""
ts_shift
=
TimeSeries
(
name
,
real
.
time
,
real
.
values
*
np
.
cos
(
2
*
np
.
pi
*
freq
*
real
.
time
)
-
imag
.
values
*
np
.
sin
(
2
*
np
.
pi
*
freq
*
real
.
time
))
return
ts_shift
@
staticmethod
def
check_node_number_comp
(
ts_list_comp
,
node
):
"""
...
...
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