From ec73916a5cd5f3263e852e6218f01cde301e34de Mon Sep 17 00:00:00 2001 From: Markus Mirz Date: Fri, 26 Oct 2018 23:11:29 +0200 Subject: [PATCH] remove deprecated dpsim module --- dataprocessing/dpsim.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 dataprocessing/dpsim.py diff --git a/dataprocessing/dpsim.py b/dataprocessing/dpsim.py deleted file mode 100644 index 67d0f82..0000000 --- a/dataprocessing/dpsim.py +++ /dev/null @@ -1,31 +0,0 @@ -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 - :return: - """ - voltage_phasor_list = {} - for name, ts in dpsim_timeseries_list.items(): - ts_abs = ts.abs(ts.name + '_abs') - ts_phase = ts.phase(ts.name + '_phase') - ts_phasor = {} - ts_phasor['abs'] = ts_abs - ts_phasor['phase'] = ts_phase - voltage_phasor_list[ts.name] = 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 - :return: - """ - voltages_list = {} - for name, ts in timeseries_list.items(): - ts_emt = ts.frequency_shift(ts.name, freq) - voltages_list[ts.name] = ts_emt - - return voltages_list -- GitLab