diff --git a/energyplus_regressions/__init__.py b/energyplus_regressions/__init__.py index c777832..27b5621 100644 --- a/energyplus_regressions/__init__.py +++ b/energyplus_regressions/__init__.py @@ -1,2 +1,2 @@ NAME = 'energyplus_regressions' -VERSION = '2.1.4' +VERSION = '2.1.5' diff --git a/energyplus_regressions/diffs/table_diff.py b/energyplus_regressions/diffs/table_diff.py index 1bf8fa4..c509270 100755 --- a/energyplus_regressions/diffs/table_diff.py +++ b/energyplus_regressions/diffs/table_diff.py @@ -467,6 +467,8 @@ def table_diff( if uheading1 not in uhset_match: table_not_in_2 = 1 count_of_not_in_2 += table_not_in_2 + table_big_diff = 1 + count_of_big_diff += table_big_diff make_err_table_row(err_soup, tabletag, uheading1, count_of_tables, abs_diff_file, rel_diff_file, table_small_diff, table_big_diff, table_equal, table_string_diff, table_size_error, table_not_in_1, table_not_in_2) @@ -479,6 +481,8 @@ def table_diff( if len(table1('tr')) != len(table2('tr')) or len(table1('td')) != len(table2('td')): table_size_error = 1 count_of_size_error += table_size_error + table_big_diff = 1 + count_of_big_diff += table_big_diff make_err_table_row(err_soup, tabletag, uheading1, count_of_tables, abs_diff_file, rel_diff_file, table_small_diff, table_big_diff, table_equal, table_string_diff, table_size_error, table_not_in_1, table_not_in_2) diff --git a/energyplus_regressions/tests/diffs/tbl_resources/eplustbl_empty_table_base.htm b/energyplus_regressions/tests/diffs/tbl_resources/eplustbl_empty_table_base.htm new file mode 100644 index 0000000..1ffc1ed --- /dev/null +++ b/energyplus_regressions/tests/diffs/tbl_resources/eplustbl_empty_table_base.htm @@ -0,0 +1,100 @@ + + +
+Program Version:EnergyPlus, Version 9.0.1-a7c9cc14ce, YMD=2018.11.20 17:26
+Tabular Output Report in Format: HTML
+Building: Bldg
+Environment: DENVER CENTENNIAL ANN CLG 1% CONDNS DB=>MWB **
+Simulation Timestamp: 2018-11-20 + 17:26:37
+Report: Annual Building Utility Performance Summary
+For: Entire Facility
+Timestamp: 2018-11-20 + 17:26:37
+Values gathered over 0.00 hours| + | Total Energy [GJ] | +Energy Per Total Building Area [MJ/m2] | +Energy Per Conditioned Building Area [MJ/m2] | +
| Total Site Energy | +0.00 | +0.00 | +0.00 | +
| Net Site Energy | +0.00 | +0.00 | +0.00 | +
| Total Source Energy | +0.00 | +0.00 | +0.00 | +
| Net Source Energy | +0.00 | +0.00 | +0.00 | +
| + | Site=>Source Conversion Factor | +
| Electricity | +3.167 | +
| Natural Gas | +1.084 | +
| + | Area [m2] | +
| Total Building Area | +232.26 | +
| Net Conditioned Building Area | +232.26 | +
| Unconditioned Building Area | +0.00 | +
Program Version:EnergyPlus, Version 9.0.1-a7c9cc14ce, YMD=2018.11.20 17:26
+Tabular Output Report in Format: HTML
+Building: Bldg
+Environment: DENVER CENTENNIAL ANN CLG 1% CONDNS DB=>MWB **
+Simulation Timestamp: 2018-11-20 + 17:26:37
+Report: Annual Building Utility Performance Summary
+For: Entire Facility
+Timestamp: 2018-11-20 + 17:26:37
+Values gathered over 0.00 hours| + | Total Energy [GJ] | +Energy Per Total Building Area [MJ/m2] | +Energy Per Conditioned Building Area [MJ/m2] | +
| Total Site Energy | +0.00 | +0.00 | +0.00 | +
| Net Site Energy | +0.00 | +0.00 | +0.00 | +
| Total Source Energy | +0.00 | +0.00 | +0.00 | +
| Net Source Energy | +0.00 | +0.00 | +0.00 | +
| + | Site=>Source Conversion Factor | +
| Electricity | +3.167 | +
| Natural Gas | +1.084 | +
| + | Area [m2] | +
| None | ++ |