bugfixes, replotting of SeisArray figure
This commit is contained in:
parent
0abbb79e64
commit
47bd7384f8
@ -66,7 +66,6 @@ class gui_control(object):
|
|||||||
self.seisarray.addSourceLocations(srcfile)
|
self.seisarray.addSourceLocations(srcfile)
|
||||||
if len(ptsfile) > 0:
|
if len(ptsfile) > 0:
|
||||||
self.seisarray.addMeasuredTopographyPoints(ptsfile)
|
self.seisarray.addMeasuredTopographyPoints(ptsfile)
|
||||||
self.reprintArray()
|
|
||||||
self.setSeisArrayState(True)
|
self.setSeisArrayState(True)
|
||||||
|
|
||||||
def gen_survey(self):
|
def gen_survey(self):
|
||||||
@ -92,6 +91,9 @@ class gui_control(object):
|
|||||||
self.seisArrayFigure = Figure()
|
self.seisArrayFigure = Figure()
|
||||||
self.seisArrayCanvas = FigureCanvas(self.seisArrayFigure)
|
self.seisArrayCanvas = FigureCanvas(self.seisArrayFigure)
|
||||||
self.mainUI.verticalLayout_right.addWidget(self.seisArrayCanvas)
|
self.mainUI.verticalLayout_right.addWidget(self.seisArrayCanvas)
|
||||||
|
self.addArrayAxes()
|
||||||
|
|
||||||
|
def addArrayAxes(self):
|
||||||
self.seisArrayAx = self.seisArrayFigure.add_subplot(111)
|
self.seisArrayAx = self.seisArrayFigure.add_subplot(111)
|
||||||
|
|
||||||
def interpolate_receivers(self):
|
def interpolate_receivers(self):
|
||||||
@ -99,6 +101,7 @@ class gui_control(object):
|
|||||||
self.printDialogMessage('No Seismic Array defined.')
|
self.printDialogMessage('No Seismic Array defined.')
|
||||||
return
|
return
|
||||||
self.seisarray.interpolateAll()
|
self.seisarray.interpolateAll()
|
||||||
|
self.replotArray()
|
||||||
|
|
||||||
def getPickParameters(self, ui, Picking_parameters):
|
def getPickParameters(self, ui, Picking_parameters):
|
||||||
if Picking_parameters.exec_():
|
if Picking_parameters.exec_():
|
||||||
@ -246,12 +249,16 @@ class gui_control(object):
|
|||||||
self.seisarray = self.survey.seisarray
|
self.seisarray = self.survey.seisarray
|
||||||
self.setConnected2SurveyState(True)
|
self.setConnected2SurveyState(True)
|
||||||
self.setSeisArrayState(True)
|
self.setSeisArrayState(True)
|
||||||
self.reprintArray()
|
|
||||||
self.printDialogMessage('Loaded Survey with active Seismic Array.')
|
self.printDialogMessage('Loaded Survey with active Seismic Array.')
|
||||||
|
|
||||||
def reprintArray(self):
|
def replotArray(self):
|
||||||
self.seisArrayAx.clear()
|
self.seisArrayFigure.clf()
|
||||||
self.seisarray.plotArray2D(self.seisArrayAx)
|
self.addArrayAxes()
|
||||||
|
self.plotArray()
|
||||||
|
self.seisArrayCanvas.draw()
|
||||||
|
|
||||||
|
def plotArray(self):
|
||||||
|
self.seisarray.plotArray2D(self.seisArrayAx, highlight_measured = True)
|
||||||
|
|
||||||
def load_seisarray(self):
|
def load_seisarray(self):
|
||||||
if self.checkSeisArrayState():
|
if self.checkSeisArrayState():
|
||||||
@ -270,7 +277,7 @@ class gui_control(object):
|
|||||||
%(type(survey), seismicArrayPreparation.SeisArray))
|
%(type(survey), seismicArrayPreparation.SeisArray))
|
||||||
return
|
return
|
||||||
self.seisarray = seisarray
|
self.seisarray = seisarray
|
||||||
self.reprintArray()
|
self.replotArray()
|
||||||
self.setSeisArrayState(True)
|
self.setSeisArrayState(True)
|
||||||
|
|
||||||
def save_seisarray(self):
|
def save_seisarray(self):
|
||||||
@ -324,6 +331,7 @@ class gui_control(object):
|
|||||||
def setSeisArrayState(self, state):
|
def setSeisArrayState(self, state):
|
||||||
if state == True:
|
if state == True:
|
||||||
self.mainUI.seisarray_active.setPixmap(self.applypixmap)
|
self.mainUI.seisarray_active.setPixmap(self.applypixmap)
|
||||||
|
self.replotArray()
|
||||||
elif state == False:
|
elif state == False:
|
||||||
self.mainUI.seisarray_active.setPixmap(self.cancelpixmap)
|
self.mainUI.seisarray_active.setPixmap(self.cancelpixmap)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user