Changeset a3c4217 in sasview for src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
rbe6f7af ra3c4217 1 """ 2 This module provides the intelligence behind the gui interface for Corfunc. 3 """ 1 4 # pylint: disable=E1101 2 5 … … 6 9 7 10 # sas-global 11 # pylint: disable=import-error, no-name-in-module 8 12 import sas.qtgui.Utilities.GuiUtils as GuiUtils 9 13 from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator 14 # pylint: enable=import-error, no-name-in-module 10 15 11 16 # local … … 53 58 self.axes.axvline(qmax1) 54 59 self.axes.axvline(qmax2) 55 self.axes.set_xlim(min(self.data.x) , max(self.data.x) * 1.5 -56 0.5 * min(self.data.x))60 self.axes.set_xlim(min(self.data.x) / 2, 61 max(self.data.x) * 1.5 - 0.5 * min(self.data.x)) 57 62 if self.extrap: 58 63 self.axes.plot(self.extrap.x, self.extrap.y) … … 74 79 75 80 if self.data: 76 self.axes.plot(self.data.x, self.data.y, label="1D Correlation") 77 self.axes.plot(self.data3.x, self.data3.y, label="3D Correlation") 78 self.axes.plot(self.data_idf.x, self.data_idf.y, 81 data1, data3, data_idf = self.data 82 self.axes.plot(data1.x, data1.y, label="1D Correlation") 83 self.axes.plot(data3.x, data3.y, label="3D Correlation") 84 self.axes.plot(data_idf.x, data_idf.y, 79 85 label="Interface Distribution Function") 80 self.axes.set_xlim(min( self.data.x), max(self.data.x) / 4)86 self.axes.set_xlim(min(data1.x), max(data1.x) / 4) 81 87 self.axes.legend() 82 88 … … 88 94 name = "Corfunc" # For displaying in the combo box 89 95 96 # pylint: disable=unused-argument 90 97 def __init__(self, parent=None): 91 98 super(CorfuncWindow, self).__init__() … … 196 203 def completefn(transforms): 197 204 """Extract the values from the transforms and plot""" 198 (trans1, trans3, idf) = transforms 199 self._realplot.data = trans1 200 self._realplot.data3 = trans3 201 self._realplot.data_idf = idf 205 self._realplot.data = transforms 202 206 self._realplot.draw_real_space() 203 params = self._calculator.extract_parameters(trans 1)207 params = self._calculator.extract_parameters(transforms[0]) 204 208 self.model.setItem(W.W_CORETHICK, 205 209 QtGui.QStandardItem(str(params['d0']))) … … 251 255 self.model.setItem(W.W_BACKGROUND, temp) 252 256 253 def allowBatch(self): 257 # pylint: disable=invalid-name 258 @staticmethod 259 def allowBatch(): 254 260 """ 255 261 We cannot perform corfunc analysis in batch at this time. … … 286 292 287 293 self._allow_close = value 294 # pylint: enable=invalid-name
Note: See TracChangeset
for help on using the changeset viewer.