From 863718a3f80f4c65a4ba236e2da0a5a17a52750e Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 7 Aug 2017 16:53:21 +0200 Subject: [PATCH] [add] support str as outformat --- QtPyLoT.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index bd74092d..ac4e8985 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1110,11 +1110,13 @@ class MainWindow(QMainWindow): Save event data to directory with specified output formats. :param event: PyLoT Event, if not set current event will be used :param directory: output directory, if not set default event path will be used - :param outformats: list of output formats + :param outformats: str/list of output formats :return: ''' if not event: event = self.get_current_event() + if not type(outformats) == list: + outformats = [outformats] def getSavePath(event, directory, outformats): if not directory: