[bugfix] trying to figure out cause of segmentation fault

This commit is contained in:
Sebastian Wehling-Benatelli 2015-11-18 09:30:32 +01:00
parent 1d6d786dbb
commit c51ba1bd56

View File

@ -36,7 +36,7 @@ from PySide.QtGui import QMainWindow, QInputDialog, QIcon, QFileDialog, \
QDialog, QErrorMessage, QApplication, QPixmap, QMessageBox, QSplashScreen, \ QDialog, QErrorMessage, QApplication, QPixmap, QMessageBox, QSplashScreen, \
QActionGroup, QListWidget, QDockWidget QActionGroup, QListWidget, QDockWidget
import numpy as np import numpy as np
from obspy import UTCDateTime, readEvents from obspy import UTCDateTime
from pylot.core.read.data import Data from pylot.core.read.data import Data
from pylot.core.read.inputs import FilterOptions, AutoPickParameter from pylot.core.read.inputs import FilterOptions, AutoPickParameter
@ -59,7 +59,6 @@ locateTool = dict(nll=locateNll)
class MainWindow(QMainWindow): class MainWindow(QMainWindow):
__version__ = _getVersionString() __version__ = _getVersionString()
__slots__ = ['loc']
closing = Signal() closing = Signal()
def __init__(self, parent=None): def __init__(self, parent=None):
@ -651,10 +650,10 @@ class MainWindow(QMainWindow):
self.drawPicks(station) self.drawPicks(station)
else: else:
self.updateStatus('picks discarded ({0})'.format(station)) self.updateStatus('picks discarded ({0})'.format(station))
if not self.locflag() and self.check4Loc(): if not self.getLocflag() and self.check4Loc():
self.locflag(True) self.setLocflag(True)
elif self.locflag() and not self.check4Loc(): elif self.getLocflag() and not self.check4Loc():
self.locflag(False) self.setLocflag(False)
def autoPick(self): def autoPick(self):
list = QListWidget() list = QListWidget()
@ -783,12 +782,10 @@ class MainWindow(QMainWindow):
num += len(phases) num += len(phases)
return num return num
@property def getLocflag(self):
def locflag(self):
return self.loc return self.loc
@locflag.setter def setLocflag(self, value):
def locflag(self, value):
self.loc = value self.loc = value
def updateStatus(self, message, duration=5000): def updateStatus(self, message, duration=5000):