Skip to content

Commit 791458e

Browse files
authored
Merge pull request #824 from RWTH-EBC/issue823_idealThresholdWarning
Delete value error #823
2 parents 243f5cd + af45a7e commit 791458e

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

teaser/logic/buildingobjects/useconditions.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,7 @@ def with_ideal_thresholds(self):
580580

581581
@with_ideal_thresholds.setter
582582
def with_ideal_thresholds(self, value):
583-
if self.with_ahu is False and value is True:
584-
raise ValueError(
585-
"Threshold for ideal heaters should only be used"
586-
" when AHU is used in this zone"
587-
)
588-
else:
589-
self._with_ideal_thresholds = value
583+
self._with_ideal_thresholds = value
590584

591585
@property
592586
def heating_profile(self):

tests/test_useconditions.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,6 @@ def test_ahu_profiles(self):
133133
== heating_profile_week
134134
)
135135

136-
def test_ahu_threshold_true(self):
137-
prj.set_default()
138-
helptest.building_test2(prj)
139-
use_cond = prj.buildings[-1].thermal_zones[-1].use_conditions
140-
use_cond.with_ahu = True
141-
use_cond.with_ideal_thresholds = True
142-
143-
def test_ahu_threshold_false(self):
144-
prj.set_default()
145-
helptest.building_test2(prj)
146-
use_cond = prj.buildings[-1].thermal_zones[-1].use_conditions
147-
use_cond.with_ahu = False
148-
with pytest.raises(Exception):
149-
use_cond.with_ideal_thresholds = True
150-
151136
def test_profile_adjust_opening_times(self):
152137
prj.set_default()
153138
helptest.building_test2(prj)

0 commit comments

Comments
 (0)