OUTPUTFORMATS in defaults defined; manage available formats just from here
This commit is contained in:
@@ -12,3 +12,5 @@ FILTERDEFAULTS = {'P': {'filtertype': None,
|
||||
'S': {'filtertype': 'bandpass',
|
||||
'order': '4',
|
||||
'freq': [.5, 5]}}
|
||||
|
||||
OUTPUTFORMATS = {'QuakeML':'QUAKEML', 'VelEst':'VELEST'}
|
||||
@@ -37,6 +37,7 @@ from PySide.QtCore import (Qt,
|
||||
SLOT)
|
||||
from PySide.QtWebKit import QWebView
|
||||
from pylot.core.read import FilterOptions
|
||||
from pylot.core.util.defaults import OUTPUTFORMATS
|
||||
|
||||
|
||||
class MPLWidget(FigureCanvasQTAgg):
|
||||
@@ -119,7 +120,7 @@ class OutputsTab(QWidget):
|
||||
|
||||
eventOutputLabel = QLabel("event ouput format")
|
||||
eventOutputComboBox = QComboBox()
|
||||
eventoutputformats = ["QuakeML", "VelEst"]
|
||||
eventoutputformats = OUTPUTFORMATS.keys()
|
||||
eventOutputComboBox.addItems(eventoutputformats)
|
||||
|
||||
layout = QGridLayout()
|
||||
|
||||
Reference in New Issue
Block a user