Commit c2ca1eac authored by martin.moraga's avatar martin.moraga
Browse files

update examples

parent f39913e7
......@@ -6,7 +6,7 @@ import cimpy
logging.basicConfig(filename='CIGRE.log', level=logging.INFO, filemode='w')
cim_xml_path = r".\examples\quickstart\sample_data"
cim_xml_path = r"..\quickstart\sample_data"
cim_xml_files=[cim_xml_path + r"\Rootnet_FULL_NE_06J16h_DI.xml",
cim_xml_path + r"\Rootnet_FULL_NE_06J16h_EQ.xml",
cim_xml_path + r"\Rootnet_FULL_NE_06J16h_SV.xml",
......@@ -28,7 +28,7 @@ for node in results_pf.nodes:
print("\n\n\n")
# Show numerical comparison
loadflow_results_path = r".\examples\quickstart\sample_data"
loadflow_results_path = r"..\quickstart\sample_data"
loadflow_results_file = loadflow_results_path + r"\CIGRE-MV-NoTap.csv"
results_dpsim = results.Results(system)
......
......@@ -4,12 +4,13 @@ import matplotlib.pyplot as plt
import cimpy
from acs.state_estimation import network
from acs.state_estimation import nv_state_estimator
from acs.state_estimation import measurement
from acs.state_estimation import results
logging.basicConfig(filename='CIGRE.log', level=logging.INFO, filemode='w')
cim_xml_path = r".\examples\quickstart\sample_data"
cim_xml_path = r"..\quickstart\sample_data"
cim_xml_files=[cim_xml_path + r"\Rootnet_FULL_NE_06J16h_DI.xml",
cim_xml_path + r"\Rootnet_FULL_NE_06J16h_EQ.xml",
cim_xml_path + r"\Rootnet_FULL_NE_06J16h_SV.xml",
......@@ -22,7 +23,7 @@ base_apparent_power = 25 #MW
system.load_cim_data(res, base_apparent_power)
#read Input-Ergebnisdatei and store it in a results.Results object
loadflow_results_path = r".\examples\quickstart\sample_data"
loadflow_results_path = r"..\quickstart\sample_data"
loadflow_results_file = loadflow_results_path + r"\CIGRE-MV-NoTap.csv"
powerflow_results = results.Results(system)
powerflow_results.read_data_dpsim(loadflow_results_file)
......@@ -46,7 +47,7 @@ for node in powerflow_results.nodes:
measurements_set.meas_creation()
# Perform state estimation
state_estimation_results_ideal = .DsseCall(system, measurements_set)
state_estimation_results_ideal = nv_state_estimator.DsseCall(system, measurements_set)
# Show numerical comparison
Vest_ideal = state_estimation_results_ideal.get_voltages(pu=False)
......@@ -67,7 +68,7 @@ for node in powerflow_results.nodes:
measurements_set.meas_creation()
# Perform state estimation
state_estimation_results_real = .DsseCall(system, measurements_set)
state_estimation_results_real = nv_state_estimator.DsseCall(system, measurements_set)
# Show numerical comparison
Vest_real = state_estimation_results_real.get_voltages(pu=False)
......
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