Navigation Menu

Skip to content

Commit

Permalink
- pass absolute / relative error when running event tests as the outp…
Browse files Browse the repository at this point in the history
…ut in the report files is truncated
  • Loading branch information
fbergmann committed Apr 25, 2017
1 parent 944650c commit bd1cfb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/NumDiff.py
Expand Up @@ -119,7 +119,11 @@ def takeImportantThings_python(ename, aname, dname):
idxAux = 0

absErrorUB = 1e-09
if 'ABSOLUTE_ERROR' in os.environ:
absErrorUB = float(os.environ['ABSOLUTE_ERROR'])
relErrorUB = 1e-05
if 'RELATIVE_ERROR' in os.environ:
relErrorUB = float(os.environ['RELATIVE_ERROR'])

file3 = open(dname, 'w')

Expand Down
2 changes: 2 additions & 0 deletions copasi/CopasiSE/CMakeLists.txt
Expand Up @@ -55,6 +55,8 @@ add_test(NAME CopasiTestsuite

)
set_tests_properties(CopasiTestsuite PROPERTIES FAIL_REGULAR_EXPRESSION "ifferent")
# reduce precision, as the test comparison code uses truncated data
set_tests_properties(CopasiTestsuite PROPERTIES ENVIRONMENT "ABSOLUTE_ERROR=1e-04;RELATIVE_ERROR=1e-04")

endif()

0 comments on commit bd1cfb8

Please sign in to comment.