Skip to content

Commit 2ad6e16

Browse files
Fixed heatplot method not returning base64 encoded image (#175)
2 parents 55f5cb3 + 7261641 commit 2ad6e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/wrapped/plot

LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/wrapped/plot/heatmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def main(epw_file: str, data_type_key: str, colour_map: str, save_path:str = Non
2121
epw = EPW(epw_file)
2222
coll = HourlyContinuousCollection.from_dict([a for a in epw.to_dict()["data_collections"] if a["header"]["data_type"]["name"] == data_type_key][0])
2323
fig = heatmap(collection_to_series(coll), cmap=colour_map).get_figure()
24-
if save_path == None:
24+
if save_path == None or save_path == "":
2525
base64 = figure_to_base64(fig,html=False)
2626
print(base64)
2727
else:

0 commit comments

Comments
 (0)