Commit ec73916a authored by Markus Mirz's avatar Markus Mirz
Browse files

remove deprecated dpsim module

parent e754bd3c
from dataprocessing.readtools import *
from dataprocessing.timeseries import *
from dataprocessing.plottools import *
def get_node_voltage_phasors(dpsim_timeseries_list):
"""Calculate voltage phasors of all nodes
:param dpsim_timeseries_list: timeseries list retrieved from dpsim results
voltage_phasor_list = {}
for name, ts in dpsim_timeseries_list.items():
ts_abs = ts.abs( + '_abs')
ts_phase = ts.phase( + '_phase')
ts_phasor = {}
ts_phasor['abs'] = ts_abs
ts_phasor['phase'] = ts_phase
voltage_phasor_list[] = ts_phasor
return voltage_phasor_list
def get_node_emt_voltages(timeseries_list, freq):
"""Calculate EMT results of all nodes
:param timeseries_list: timeseries list retrieved from dpsim results
voltages_list = {}
for name, ts in timeseries_list.items():
ts_emt = ts.frequency_shift(, freq)
voltages_list[] = ts_emt
return voltages_list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment