diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index 711971d2..236b852c 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -8,7 +8,7 @@ import os -class GenericDataBase(object): +class GenericDataStructure(object): ''' GenericDataBase type holds all information about the current data- base working on. diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 1f531d5a..d0cc9403 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -14,6 +14,9 @@ from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg from PySide.QtGui import (QDialog, QDockWidget) +from pylot.core.util import OptionsError +from pylot.core.util import FilterOptions + class MPLWidget(FigureCanvasQTAgg): @@ -43,7 +46,7 @@ class PickDlg(QDialog): class PropertiesDlg(QDialog): def __init__(self, parent=None): - super(PropertiesWindow, self).__init__(parent) + super(PropertiesDlg, self).__init__(parent) class FilterOptionsDock(QDockWidget): @@ -56,5 +59,11 @@ class FilterOptionsDock(QDockWidget): try: fOptions = FilterOptions(**filterOptions) filterOptions = fOptions - except e: + except Exception, e: raise OptionsError('%s' % e) + + +class LoadDataDlg(QDialog): + + def __init__(self, parent=None): + super(LoadDataDlg, self).__init__(parent)