Aufgrund einer Wartung wird GitLab am 17.08. zwischen 8:30 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 17.08. between 8:30 and 9:00 am.

Commit ef87e7cd authored by Jan Dinkelbach's avatar Jan Dinkelbach

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!)
else:
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