Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterpeere committed Feb 13, 2025
1 parent e2a2be6 commit 68f35e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GHEtool/Methods/optimise_load_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def optimise_load_profile_power(
borefield.Tf_min - min(borefield.results.peak_extraction))))
else:
if (dhw_preferential and peak_heat_load != init_peak_heating) or (
not dhw_preferential and 0 == peak_dhw_load):
not dhw_preferential and 0.1 >= peak_dhw_load):
peak_heat_load = min(init_peak_heating, peak_heat_load * 1.01)
else:
peak_dhw_load = min(init_peak_dhw, peak_dhw_load * 1.01)
Expand Down
2 changes: 1 addition & 1 deletion GHEtool/test/methods/method_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
power=True,
hourly=True, dhw_preferential=False))
hourly_load.load_hourly_profile(FOLDER.joinpath("test\methods\hourly_data\hourly_profile.csv"), col_heating=1,
col_cooling=0, col_dhw=0)
col_cooling=0, col_dhw=1)
hourly_load.set_hourly_heating_load(np.zeros(8760))
hourly_load.cop_dhw = 10 ** 6
list_of_test_objects.add(OptimiseLoadProfileObject(borefield, hourly_load, 150, 99.976, 66.492,
Expand Down

0 comments on commit 68f35e5

Please sign in to comment.