[add] support str as outformat
This commit is contained in:
parent
aa954dcd52
commit
863718a3f8
@ -1110,11 +1110,13 @@ class MainWindow(QMainWindow):
|
|||||||
Save event data to directory with specified output formats.
|
Save event data to directory with specified output formats.
|
||||||
:param event: PyLoT Event, if not set current event will be used
|
: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 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:
|
:return:
|
||||||
'''
|
'''
|
||||||
if not event:
|
if not event:
|
||||||
event = self.get_current_event()
|
event = self.get_current_event()
|
||||||
|
if not type(outformats) == list:
|
||||||
|
outformats = [outformats]
|
||||||
|
|
||||||
def getSavePath(event, directory, outformats):
|
def getSavePath(event, directory, outformats):
|
||||||
if not directory:
|
if not directory:
|
||||||
|
Loading…
Reference in New Issue
Block a user