Changeset 37e7223 in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Jul 11, 2016 5:14:07 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 02a8779
- Parents:
- 0bbebee
- Location:
- src/sas/sasgui/perspectives/corfunc
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc.py
r173ee3a r37e7223 17 17 from sas.sascalc.dataloader.loader import Loader 18 18 import sas.sascalc.dataloader 19 20 21 GROUP_ID_IQ_DATA = r"$I(q)$" 22 IQ_DATA_LABEL = r"$I_{obs}(q)$" 23 IQ_EXTRAPOLATED_DATA_LABEL = r"$I_{extrap}(q)$" 24 25 GROUP_ID_TRANSFORM = r"$\Gamma(x)$" 26 TRANSFORM_LABEL = r"$\Gamma(x)$" 19 from plot_labels import * 27 20 28 21 -
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
r0bbebee r37e7223 13 13 import sas.sasgui.perspectives.corfunc.corfunc 14 14 from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator 15 from plot_labels import * 15 16 16 17 OUTPUT_STRINGS = { … … 152 153 self.set_extracted_params(None) 153 154 if self._manager is not None: 154 from sas.sasgui.perspectives.corfunc.corfunc import IQ_DATA_LABEL155 155 self._manager.clear_data() 156 156 self._manager.show_data(self._data, IQ_DATA_LABEL, reset=True) … … 196 196 plot_y = self._extrapolated_data.y[0:numpts] 197 197 to_plot = Data1D(plot_x, plot_y) 198 from sas.sasgui.perspectives.corfunc.corfunc import\199 IQ_EXTRAPOLATED_DATA_LABEL200 198 self._manager.show_data(to_plot, IQ_EXTRAPOLATED_DATA_LABEL) 201 199 self._transform_btn.Enable() … … 218 216 return 219 217 self._transformed_data = transformed_data 220 from sas.sasgui.perspectives.corfunc.corfunc import TRANSFORM_LABEL221 218 import numpy as np 222 219 plot_x = transformed_data.x[np.where(transformed_data.x <= 200)] … … 298 295 self.background = float(self._background_input.GetValue()) 299 296 self._calculator.background = self.background 300 from sas.sasgui.perspectives.corfunc.corfunc import GROUP_ID_IQ_DATA,\301 IQ_DATA_LABEL302 297 if event is not None: 303 298 active_ctrl = event.GetEventObject() … … 318 313 is_click = event.LeftDown() 319 314 if is_click: 320 from sas.sasgui.perspectives.corfunc.corfunc import GROUP_ID_IQ_DATA,\321 IQ_DATA_LABEL322 315 wx.PostEvent(self._manager.parent, PlotQrangeEvent( 323 316 ctrl=[self._qmin_input, self._qmax1_input, self._qmax2_input],
Note: See TracChangeset
for help on using the changeset viewer.