optimized imports

This commit is contained in:
Markus Rosenstihl 2014-09-24 22:09:39 +02:00
parent ffc817f306
commit 582019d7cb

8
QDS.py
View File

@ -9,6 +9,7 @@ import time
import os, sys, re, signal
import matplotlib
matplotlib.use('agg')
from matplotlib import pyplot
@ -59,7 +60,6 @@ class AppWindow(QMainWindow):
self.parameterWidget = ParameterWidget()
self.ui.dockWidget_3.setWidget(self.parameterWidget)
self.data = Data()
self.fit_boundary_imag = pg.LinearRegionItem(brush=QColor(0, 127, 254, 15))
@ -96,7 +96,6 @@ class AppWindow(QMainWindow):
sc_imag.sigMouseClicked.connect(self.mousePress)
sc_imag.sigMouseMoved.connect(self.updateCrosshair)
self._fit_thread = QThread()
self._fit_method = FitRoutine()
self._fit_method.moveToThread(self._fit_thread)
@ -158,7 +157,6 @@ class AppWindow(QMainWindow):
self.ui.actionShow_Derivative.triggered.connect(self.show_derivative)
def show_derivative( self ):
self.xtra_wdgt = ExtraDifferentialWidget.DifferentialWidget()
#self.xtra_wdgt.set
@ -498,7 +496,6 @@ class AppWindow(QMainWindow):
for container in self.function_registry.get_registered_functions():
container.abort(False)
self.data.set_fit(odr_result.beta, funcs)
self.ui.statusbar.showMessage(" ".join(odr_result.stopreason))
ndx = 0
@ -557,8 +554,6 @@ class AppWindow(QMainWindow):
self.data.set_data(_freq, _die_stor, _die_loss)
self.data.meta["T"] = Temp
self.fit_boundary_imag.setRegion([np.log10(_freq.min()), np.log10(_freq.max())])
# self.ui.pgPlotWidget_imag.enableAutoRange()
# self.ui.pgPlotWidget_real.enableAutoRange()
self.ui.pgPlotWidget_imag.disableAutoRange()
self.ui.pgPlotWidget_real.disableAutoRange()
@ -627,6 +622,7 @@ class AppWindow(QMainWindow):
lims = [10**i for i in self.fit_boundary_real.getRegion()]
container.set_limits(lims)
def sigint_handler( *args ):
"""
Handler for the SIGINT signal (CTRL + C).