Skip to content

Commit 8dbf0ba

Browse files
chriswmackeyChris Mackey
authored and
Chris Mackey
committed
fix(rcalc): Prevent misleading warning about no inputs
This has been showing up unnecessarily in every recipe since we are piping things into the command. So I'm removing it here.
1 parent 44cdaca commit 8dbf0ba

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

honeybee_radiance_command/rcalc.py

-2
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,3 @@ def to_radiance(self, stdin_input=False):
9494

9595
def validate(self):
9696
Command.validate(self)
97-
if len(self.inputs) == 0:
98-
warnings.warn('rcalc: no inputs.')

tests/rcalc_test.py

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ def test_defaults():
1111
with warnings.catch_warnings(record=True) as w:
1212
warnings.simplefilter('always')
1313
rcalc.to_radiance()
14-
# verify a warning has been raised for empty scene.
15-
assert len(w) == 1
16-
assert 'no inputs.' in str(w[0].message)
1714

1815

1916
input_path = 'result/input.dat'

0 commit comments

Comments
 (0)