Commit ef87e7cd authored by Jan Dinkelbach's avatar Jan Dinkelbach
Browse files

check that some values are compared during validation

parent 068f2409
......@@ -162,6 +162,11 @@ def assert_modelica_results(net_name, error, threshold):
:param simulink_res: timeseries of reference result
:return: outputs to command line which are the results of the assert
if not error:
raise ValueError("No error values available. Model assertion can not be performed!)
print("%i error values available. Comparing with threshold..." % len(error))
fail_list = [] # List for all the failed test
for name in error.keys():
if abs(error[name]) > threshold:
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