Skip to content

Commit 45be2be

Browse files
chriswmackeyChris Mackey
authored andcommitted
fix(cli): Ensure that HTML can still be written to stdout
1 parent 026b028 commit 45be2be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extras-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
honeybee-energy>=1.95.35
22
honeybee-radiance>=1.64.118
3-
ladybug-vtk>=0.13.9
3+
ladybug-vtk>=0.14.1

honeybee_display/cli/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def model_to_vis_set(
199199
else: # vtkjs can only be read as binary
200200
with open(out_file_path, 'rb') as of:
201201
f_contents = of.read()
202-
b = base64.b64encode(f_contents)
203-
base64_string = b.decode('utf-8')
204-
output_file.write(base64_string)
202+
b = base64.b64encode(f_contents)
203+
f_contents = b.decode('utf-8')
204+
output_file.write(f_contents)
205205
else:
206206
raise ValueError('Unrecognized output-format "{}".'.format(output_format))
207207
except Exception as e:

0 commit comments

Comments
 (0)