Skip to content

Commit

Permalink
fix(rcalc): Prevent misleading warning about no inputs
Browse files Browse the repository at this point in the history
This has been showing up unnecessarily in every recipe since we are piping things into the command. So I'm removing it here.
  • Loading branch information
chriswmackey authored and Chris Mackey committed Nov 17, 2023
1 parent 44cdaca commit 8dbf0ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions honeybee_radiance_command/rcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,3 @@ def to_radiance(self, stdin_input=False):

def validate(self):
Command.validate(self)
if len(self.inputs) == 0:
warnings.warn('rcalc: no inputs.')
3 changes: 0 additions & 3 deletions tests/rcalc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ def test_defaults():
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
rcalc.to_radiance()
# verify a warning has been raised for empty scene.
assert len(w) == 1
assert 'no inputs.' in str(w[0].message)


input_path = 'result/input.dat'
Expand Down

0 comments on commit 8dbf0ba

Please sign in to comment.