Skip to content

Commit 59a0e9f

Browse files
authored
Merge pull request hed-standard#874 from VisLab/develop
Updated for mixed case extensions
2 parents 68e9606 + 5010a11 commit 59a0e9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hed/tools/visualization/tag_word_cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def create_wordcloud(word_dict, mask_path=None, background_color=None, width=400
4646
kwargs.setdefault('min_font_size', 8)
4747
if 'font_path' not in kwargs:
4848
kwargs['font_path'] = None
49-
elif kwargs['font_path'] and not kwargs['font_path'].endswith((".ttf", ".otf", ".TTF", ".OTF")):
49+
elif kwargs['font_path'] and not kwargs['font_path'].lower().endswith((".ttf", ".otf")):
5050
raise HedFileError("InvalidFontPath", f"Font {kwargs['font_path']} not valid on this system", "")
5151

5252
wc = WordCloud(background_color=background_color, mask=mask_image,

0 commit comments

Comments
 (0)