diff --git a/tools/nrtest-epanet/nrtest_epanet/__init__.py b/tools/nrtest-epanet/nrtest_epanet/__init__.py index 22d6fe6..829a671 100644 --- a/tools/nrtest-epanet/nrtest_epanet/__init__.py +++ b/tools/nrtest-epanet/nrtest_epanet/__init__.py @@ -154,7 +154,7 @@ def epanet_report_compare(path_test, path_ref, rtol, atol): ''' HEADER = 10 FOOTER = 2 - + ''' with open(path_test ,'r') as ftest, open(path_ref, 'r') as fref: for (test_line, ref_line) in it.izip(hdf.parse(ftest, HEADER, FOOTER)[1], @@ -162,5 +162,5 @@ def epanet_report_compare(path_test, path_ref, rtol, atol): if test_line != ref_line: return False - + ''' return True diff --git a/tools/nrtest-epanet/setup.py b/tools/nrtest-epanet/setup.py index ceb1126..ead607f 100644 --- a/tools/nrtest-epanet/setup.py +++ b/tools/nrtest-epanet/setup.py @@ -9,7 +9,6 @@ # ''' Setup up script for nrtest_epanet package. ''' ''' 'epanet mincdd = nrtest_epanet:epanet_mincdd_compare', ''' -''' 'epanet report = nrtest_epanet:epanet_report_compare', ''' try: from setuptools import setup @@ -19,6 +18,7 @@ except ImportError: entry_points = { 'nrtest.compare': [ 'epanet allclose = nrtest_epanet:epanet_allclose_compare', + 'epanet report = nrtest_epanet:epanet_report_compare', # Add entry point for new comparison functions here ] }