Skip to content

Commit 30feb33

Browse files
built-testbuilt-tools
authored and
built-tools
committed
fix(rcontrib): Fixed a options bug relating to on_setattr mehod
I removed the call to on_setattr from the super class (rtrace) as most of the options being invoked and checked there are not relevant to rcontrib or rfluxmtx.
1 parent 858df58 commit 30feb33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

honeybee_radiance_command/options/rcontrib.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ def _on_setattr(self):
5454
instance in rtrace option collection -ti and -te are exclusive. You can include a
5555
check to ensure this is always correct.
5656
"""
57-
RtraceOptions._on_setattr(self)
58-
# -r and -fo cannot both be True.
5957
if not hasattr(self, 'r'):
6058
return # this happens on init
59+
# -i and -I cannot both be True.
60+
assert not (self.i == True and self.I == True), \
61+
'You can either set -i or -I to True not both.'
6162
if self.r.is_set and self.fo.is_set:
6263
raise exceptions.ExclusiveOptionsError(self.command, 'r', 'fo')
6364
if self.m.is_set and self.M.is_set:

0 commit comments

Comments
 (0)