Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterpeere committed Nov 21, 2024
1 parent 067163e commit 159191b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GHEtool/test/methods/method_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@
512.6954920945816,
name='Optimise load profile (eer combined) (power)', power=True,
hourly=False))
list_of_test_objects.add(OptimiseLoadProfileObject(borefield, load, 146, 50.187981717163034, 4.08828744800462,
list_of_test_objects.add(OptimiseLoadProfileObject(borefield, load, 146, 50.187981717163034, 12.82812330930278,

Check warning on line 584 in GHEtool/test/methods/method_data.py

View check run for this annotation

Codecov / codecov/patch

GHEtool/test/methods/method_data.py#L584

Added line #L584 was not covered by tests
75.9124206410309, 86.06503815919983, 631.1307699700886, 535.936136,
name='Optimise load profile (eer combined) (energy)', power=False,
hourly=False))
Expand Down
3 changes: 2 additions & 1 deletion GHEtool/test/methods/test_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def test_optimise(input, result):
np.sum(load.hourly_heating_load_simulation_period) * 100
_percentage_injection = np.sum(borefield_load.hourly_cooling_load_simulation_period) / \
np.sum(load.hourly_cooling_load_simulation_period) * 100

print(borefield_load.max_peak_extraction, borefield_load.max_peak_injection, external_load.max_peak_heating,

Check warning on line 69 in GHEtool/test/methods/test_methods.py

View check run for this annotation

Codecov / codecov/patch

GHEtool/test/methods/test_methods.py#L69

Added line #L69 was not covered by tests
external_load.max_peak_cooling)
assert np.isclose(_percentage_extraction, percentage_extraction)
assert np.isclose(_percentage_injection, percentage_injection)
assert np.isclose(borefield_load.max_peak_extraction, peak_extraction_geo)
Expand Down

0 comments on commit 159191b

Please sign in to comment.