Skip to content

Commit

Permalink
Fixed word-cloud save file name
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Feb 19, 2024
1 parent a91a4dd commit 0e771eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hed/tools/remodeling/operations/summarize_hed_tags_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ def save_visualizations(self, save_dir, file_formats=['.svg'], individual_summar
min_font_size=wc["min_font_size"], max_font_size=wc["max_font_size"],
contour_width=wc["contour_width"], contour_color=wc["contour_color"])
svg_data = word_cloud_to_svg(tag_wc)
cloud_filename = os.path.realpath(os.path.join(save_dir, self.op.summary_name, '_word_cloud.svg'))
cloud_filename = os.path.realpath(os.path.join(save_dir, self.sum_op.summary_name,
self.sum_op.summary_name + '_word_cloud.svg'))
with open(cloud_filename, "w") as outfile:
outfile.writelines(svg_data)

Expand Down

0 comments on commit 0e771eb

Please sign in to comment.