From 4d63da6aee57507fd9d099091b15a9597465a027 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 26 Nov 2021 11:34:43 -0500 Subject: [PATCH] get_file_handle suffix is optional --- python/damask/_colormap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/_colormap.py b/python/damask/_colormap.py index 8f694ad45..51416f463 100644 --- a/python/damask/_colormap.py +++ b/python/damask/_colormap.py @@ -261,7 +261,7 @@ class Colormap(mpl.colors.ListedColormap): def _get_file_handle(self, fname: Union[TextIO, str, Path, None], - suffix: str) -> TextIO: + suffix: str = '') -> TextIO: """ Provide filehandle. @@ -270,7 +270,7 @@ class Colormap(mpl.colors.ListedColormap): fname : file, str, pathlib.Path, or None Filename or filehandle. If None, colormap name + suffix. - suffix: str + suffix: str, optional Extension to use for colormap filename. Returns