modified: introduce data container class
This commit is contained in:
parent
34e27f3e67
commit
5268d35d39
@ -27,7 +27,8 @@ from PySide.QtCore import *
|
|||||||
from PySide.QtGui import *
|
from PySide.QtGui import *
|
||||||
from obspy.core import (read, UTCDateTime)
|
from obspy.core import (read, UTCDateTime)
|
||||||
from pylot.core.util import _getVersionString
|
from pylot.core.util import _getVersionString
|
||||||
from pylot.core.read import FilterOptions
|
from pylot.core.read import (Data,
|
||||||
|
FilterOptions)
|
||||||
from pylot.core.util import FILTERDEFAULTS
|
from pylot.core.util import FILTERDEFAULTS
|
||||||
from pylot.core.util import checkurl
|
from pylot.core.util import checkurl
|
||||||
from pylot.core.util import (PickDlg,
|
from pylot.core.util import (PickDlg,
|
||||||
@ -56,13 +57,18 @@ class MainWindow(QMainWindow):
|
|||||||
self.setupUi()
|
self.setupUi()
|
||||||
|
|
||||||
def loadData(self):
|
def loadData(self):
|
||||||
pass
|
self.data = Data()
|
||||||
|
|
||||||
def setupUi(self):
|
def setupUi(self):
|
||||||
self.setWindowIcon(QIcon("PyLoT.ico"))
|
self.setWindowIcon(QIcon("PyLoT.ico"))
|
||||||
|
|
||||||
|
xlab = 'time since {0}'.format()
|
||||||
|
|
||||||
# create central matplotlib figure widget
|
# create central matplotlib figure widget
|
||||||
self.DataPlot = MPLWidget(parent=self)
|
self.DataPlot = MPLWidget(parent=self,
|
||||||
|
xlabel=xlab,
|
||||||
|
ylabel=ylab,
|
||||||
|
title=eventtitle)
|
||||||
|
|
||||||
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
||||||
parent=self,
|
parent=self,
|
||||||
@ -83,8 +89,7 @@ class MainWindow(QMainWindow):
|
|||||||
maingrid.addLayout(dataLayout, 1, 0)
|
maingrid.addLayout(dataLayout, 1, 0)
|
||||||
maingrid.setCentralWidget(self.DataPlot)
|
maingrid.setCentralWidget(self.DataPlot)
|
||||||
|
|
||||||
def plotData(self, data):
|
def plotData(self):
|
||||||
if data is not None and isinstance(data, Stream):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def updateFilterOptions(self):
|
def updateFilterOptions(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user