Enabled writing for FOCMEC output.

This commit is contained in:
2020-07-23 16:51:05 +02:00
parent 003ba76650
commit c7d8569105
4 changed files with 25 additions and 7 deletions

View File

@@ -200,7 +200,7 @@ class MainWindow(QMainWindow):
settings.setValue('useGuiFilter', False)
if settings.value('output/Format', None) is None:
outformat = QInputDialog.getText(self,
"Enter output format (*.xml, *.cnv, *.obs):",
"Enter output format (*.xml, *.cnv, *.obs, *.focmec):",
"Format")
settings.setValue("output/Format", outformat)
if settings.value('autoFilter', None) is None:
@@ -1481,7 +1481,7 @@ class MainWindow(QMainWindow):
self.set_fname(self.get_data().getEventFileName(), type)
return self.get_fnames(type)
def saveData(self, event=None, directory=None, outformats=['.xml', '.cnv', '.obs']):
def saveData(self, event=None, directory=None, outformats=['.xml', '.cnv', '.obs', '.focmec']):
'''
Save event data to directory with specified output formats.
:param event: PyLoT Event, if not set current event will be used