Commit 528e66b9 authored by Bichen Li's avatar Bichen Li

Fix the bugs on path of the Result files

parent 825e81b4
Pipeline #48605 failed with stage
...@@ -7,7 +7,7 @@ from dataprocessing.readtools import * ...@@ -7,7 +7,7 @@ from dataprocessing.readtools import *
print("Test Start") print("Test Start")
# We need to extract all the result files from git now # We need to extract all the result files from git now
for files in os.listdir( 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) print(files)
assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line
print("Test End") print("Test End")
...@@ -8,9 +8,9 @@ from dataprocessing.readtools import * ...@@ -8,9 +8,9 @@ from dataprocessing.readtools import *
def compare_modelica_neplan(Net_Name): # compare the result file from NEPLAN and Modelica def compare_modelica_neplan(Net_Name): # compare the result file from NEPLAN and Modelica
# Read in original nepaln result file # 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 # 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_neplan = read_timeseries_NEPLAN_loadflow(file_Neplan)
result_modelica = read_timeseries_Modelica(file_Modelica) result_modelica = read_timeseries_Modelica(file_Modelica)
......
Markdown is supported
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