Commit 7923cafa authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by panos

corrections in testKE

parent 50b73281
...@@ -31,10 +31,10 @@ class KnowledgeExtractionExamples(TestCase): ...@@ -31,10 +31,10 @@ class KnowledgeExtractionExamples(TestCase):
""" """
def testTwoParallelStations(self): def testTwoParallelStations(self):
from dream.KnowledgeExtraction.KEtool_examples.TwoParallelStations.TwoParallelStations_example import main from dream.KnowledgeExtraction.KEtool_examples.TwoParallelStations.TwoParallelStations_example import main
filepath=glob.glob(os.path.join(project_path, "dream", "KnowledgeExtraction", "KEtool_examples", filepath=os.path.join(project_path, "dream", "KnowledgeExtraction", "KEtool_examples",
"TwoParallelStations"))[0] "TwoParallelStations")
workbook = xlrd.open_workbook(filepath+'\\inputData.xls') workbook = xlrd.open_workbook(os.path.join(filepath, 'inputData.xls'))
jsonFile = open(filepath+'\\JSON_TwoParallelStations.json') jsonFile = open(os.path.join(filepath, 'JSON_TwoParallelStations.json'))
result = main(test=1,workbook=workbook,jsonFile=jsonFile) result = main(test=1,workbook=workbook,jsonFile=jsonFile)
result_data = json.loads(json.loads(result)) result_data = json.loads(json.loads(result))
......
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