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