Skip to content
Snippets Groups Projects
Commit 528e66b9 authored by Bichen Li's avatar Bichen Li
Browse files

Fix the bugs on path of the Result files

parent 825e81b4
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ from dataprocessing.readtools import *
print("Test Start")
# We need to extract all the result files from git now
for files in os.listdir(
os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), "..")) + "/reference-results/Neplan/BasicGrids")):
os.path.abspath("reference-results/Neplan/BasicGrids")):
print(files)
assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line
print("Test End")
......@@ -8,9 +8,9 @@ from dataprocessing.readtools import *
def compare_modelica_neplan(Net_Name): # compare the result file from NEPLAN and Modelica
# Read in original nepaln result file
file_Neplan = os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), ".."))+"/reference-results/Neplan/BasicGrids/" + Net_Name + ".rlf")
file_Neplan = os.path.abspath("reference-results/Neplan/BasicGrids/" + Net_Name + ".rlf")
# Read in original Modelica result file
file_Modelica = os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), "..")) + "/reference-results/Modelica/BasicGrids/" + Net_Name + ".mat")
file_Modelica = os.path.abspath("reference-results/Modelica/BasicGrids/" + Net_Name + ".mat")
result_neplan = read_timeseries_NEPLAN_loadflow(file_Neplan)
result_modelica = read_timeseries_Modelica(file_Modelica)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment