Loading src/pythermogis/thermogis_jar/thermogis-1.7.0-shaded.jar LFS (134 B) File changed.No diff preview for this file type. View original file View changed file tests/java/test_ThermoGISDoublet_Benchmark.py +6 −6 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ class ThermoGISDoubletBenchmark(TestCase): self.assertTrue(np.isclose(10.368587, results.utc(), 0.001)) self.assertTrue(np.isclose(17.378712, results.capex(), 0.001)) def test_calculateDoubletPerformance_directheatHP_App(self): def test_calculateDoubletPerformance_directheatHP2(self): """ This is a copy of a test from the Java ThermoGisDoubletTest.java script; to validate that this python implementation of the ThermoGIS Doublet returns the same values. Loading Loading @@ -272,11 +272,11 @@ class ThermoGISDoubletBenchmark(TestCase): self.assertTrue(np.isclose(17499.99940, transmissivity, 0.001)) self.assertTrue(np.isclose(163.99771118164062, results.flow(), 1)) self.assertTrue(np.isclose(60, results.pres(), 0.001)) self.assertTrue(np.isclose(5.140035, results.power(), 0.001)) self.assertTrue(np.isclose(977.9297, results.welld(), 0.001)) self.assertTrue(np.isclose(2.7099774, results.cop(), 0.001)) self.assertTrue(np.isclose(13.172601, results.utc(), 0.001)) self.assertTrue(np.isclose(18.448061, results.capex(), 0.001)) self.assertTrue(np.isclose(5.6734843, results.power(), 0.001)) self.assertTrue(np.isclose(955.27344, results.welld(), 0.001)) self.assertTrue(np.isclose(2.6190805, results.cop(), 0.001)) self.assertTrue(np.isclose(13.150635, results.utc(), 0.001)) self.assertTrue(np.isclose(19.1619, results.capex(), 0.001)) def test_calculateDoubletPerformance_ORC(self): """ Loading tests/java/test_utc_properties.py +5 −5 Original line number Diff line number Diff line Loading @@ -22,10 +22,10 @@ class UTCBuilder(TestCase): # If test reaches here, then parsing of xml's worked, check that the scenarios actually run on a set of test data: for scenario in scenarios: utc_properties = instantiate_utc_properties_from_xml(self.scenarios_file_path / scenario) benchmark_results = xr.load_dataset((self.benchmark_path / scenario).with_suffix(".nc")) self.run_scenario(utc_properties, benchmark_results) benchmark_path = (self.benchmark_path / scenario).with_suffix(".nc") self.run_scenario(utc_properties, benchmark_path) def run_scenario(self, utc_properties, benchmark_results: xr.Dataset = None): def run_scenario(self, utc_properties, benchmark_path: Path = None): input_data = xr.Dataset( { "thickness_mean": ((), 300), Loading @@ -44,5 +44,5 @@ class UTCBuilder(TestCase): rng_seed=0 ) if benchmark_results is not None: xr.testing.assert_equal(results, benchmark_results) if benchmark_path is not None: xr.testing.assert_equal(results, xr.load_dataset(benchmark_path)) tests/resources/test_benchmark_output/doublet/HP/simplified__50yearcooling_P10_HP.nc (2.31 KiB) File changed.No diff preview for this file type. View original file View changed file tests/resources/test_benchmark_output/doublet/HP/simplified__50yearcooling_P50_HP.nc (2.31 KiB) File changed.No diff preview for this file type. View original file View changed file Loading
src/pythermogis/thermogis_jar/thermogis-1.7.0-shaded.jar LFS (134 B) File changed.No diff preview for this file type. View original file View changed file
tests/java/test_ThermoGISDoublet_Benchmark.py +6 −6 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ class ThermoGISDoubletBenchmark(TestCase): self.assertTrue(np.isclose(10.368587, results.utc(), 0.001)) self.assertTrue(np.isclose(17.378712, results.capex(), 0.001)) def test_calculateDoubletPerformance_directheatHP_App(self): def test_calculateDoubletPerformance_directheatHP2(self): """ This is a copy of a test from the Java ThermoGisDoubletTest.java script; to validate that this python implementation of the ThermoGIS Doublet returns the same values. Loading Loading @@ -272,11 +272,11 @@ class ThermoGISDoubletBenchmark(TestCase): self.assertTrue(np.isclose(17499.99940, transmissivity, 0.001)) self.assertTrue(np.isclose(163.99771118164062, results.flow(), 1)) self.assertTrue(np.isclose(60, results.pres(), 0.001)) self.assertTrue(np.isclose(5.140035, results.power(), 0.001)) self.assertTrue(np.isclose(977.9297, results.welld(), 0.001)) self.assertTrue(np.isclose(2.7099774, results.cop(), 0.001)) self.assertTrue(np.isclose(13.172601, results.utc(), 0.001)) self.assertTrue(np.isclose(18.448061, results.capex(), 0.001)) self.assertTrue(np.isclose(5.6734843, results.power(), 0.001)) self.assertTrue(np.isclose(955.27344, results.welld(), 0.001)) self.assertTrue(np.isclose(2.6190805, results.cop(), 0.001)) self.assertTrue(np.isclose(13.150635, results.utc(), 0.001)) self.assertTrue(np.isclose(19.1619, results.capex(), 0.001)) def test_calculateDoubletPerformance_ORC(self): """ Loading
tests/java/test_utc_properties.py +5 −5 Original line number Diff line number Diff line Loading @@ -22,10 +22,10 @@ class UTCBuilder(TestCase): # If test reaches here, then parsing of xml's worked, check that the scenarios actually run on a set of test data: for scenario in scenarios: utc_properties = instantiate_utc_properties_from_xml(self.scenarios_file_path / scenario) benchmark_results = xr.load_dataset((self.benchmark_path / scenario).with_suffix(".nc")) self.run_scenario(utc_properties, benchmark_results) benchmark_path = (self.benchmark_path / scenario).with_suffix(".nc") self.run_scenario(utc_properties, benchmark_path) def run_scenario(self, utc_properties, benchmark_results: xr.Dataset = None): def run_scenario(self, utc_properties, benchmark_path: Path = None): input_data = xr.Dataset( { "thickness_mean": ((), 300), Loading @@ -44,5 +44,5 @@ class UTCBuilder(TestCase): rng_seed=0 ) if benchmark_results is not None: xr.testing.assert_equal(results, benchmark_results) if benchmark_path is not None: xr.testing.assert_equal(results, xr.load_dataset(benchmark_path))
tests/resources/test_benchmark_output/doublet/HP/simplified__50yearcooling_P10_HP.nc (2.31 KiB) File changed.No diff preview for this file type. View original file View changed file
tests/resources/test_benchmark_output/doublet/HP/simplified__50yearcooling_P50_HP.nc (2.31 KiB) File changed.No diff preview for this file type. View original file View changed file